Re: [rspec-users] Simple code dosn't work

2012-04-04 Thread Julian Leviston
On 05/04/2012, at 8:02 AM, Brad Symons wrote: > I think you have a syntactical error on the line thats throwing the > error, you state: > >>j.even?should be true #throws an error on j == 2, j == 4 > > should this line not read as: > > j.even?.should be true lol j.even?.should be

Re: [rspec-users] Simple code dosn't work

2012-04-04 Thread Curtis Schofield
-- Curtis J Schofield BlazingCloud.net "Creativity can solve anything" - George Lois (source: art & copy) On Apr 4, 2012, at 3:02 PM, Brad Symons wrote: > I think you have a syntactical error on the line thats throwing the > error, you state: > >>j.even?should be true #throw

Re: [rspec-users] Simple code dosn't work

2012-04-04 Thread Brad Symons
I think you have a syntactical error on the line thats throwing the error, you state: > j.even?should be true #throws an error on j == 2, j == 4 should this line not read as: j.even?.should be true -- Posted via http://www.ruby-forum.com/. _

Re: [rspec-users] Strange error when running bundle exec rspec spec

2012-04-04 Thread Cynthia Kiser
Quoting Brad Symons : > As I have been going through the chapters, at first the rspec tests were > running completely fine. One of the chapters suggests installing > blueprint stylesheet, which I did. > > Somewhere after that, when I write rspec tests and run bundle exec rspec > spec, it all broke

[rspec-users] Strange error when running bundle exec rspec spec

2012-04-04 Thread Brad Symons
Hi I have been following the online rails tutorial written by Micheal Hartl, can be found here: http://ruby.railstutorial.org/chapters/beginning#top As I have been going through the chapters, at first the rspec tests were running completely fine. One of the chapters suggests installing blueprint

Re: [rspec-users] The test is failing Whyy?

2012-04-04 Thread David Chelimsky
On Wed, Apr 4, 2012 at 7:47 AM, Lunarose A. wrote: > I am actually a newbie in Ruby rails nd Rspec.. So it could be something > basic.. Plz helpp > > > This is my rspec test code:: > >  describe "GET new" do >    it "assigns a new kase as @kase" do >      get :new >      assigns(:kase).should be_a

Re: [rspec-users] The test is failing Whyy?

2012-04-04 Thread thiagocifani
I think that maybe you are declaring your :kase in somewhere, but this assigns need to receive a new object, you could try pass Kase.new instead of :kase. regards 2012/4/4 Lunarose A. > I am actually a newbie in Ruby rails nd Rspec.. So it could be something > basic.. Plz helpp > > > This is my

[rspec-users] The test is failing Whyy?

2012-04-04 Thread Lunarose A.
I am actually a newbie in Ruby rails nd Rspec.. So it could be something basic.. Plz helpp This is my rspec test code:: describe "GET new" do it "assigns a new kase as @kase" do get :new assigns(:kase).should be_a_new(Kase) end end Its failing saying: KasesController