On Dec 26, 10:18 pm, Marnen Laibow-Koser <li...@ruby-forum.com> wrote:
> > All I see, including in the Rails 3 installation instructions here...
> > https://github.com/aslakhellesoy/cucumber-rails/blob/master/README.rdoc
> > ... are instructions involving RSpec only. :/ Bleh.
>
> Bleh? What have you got against RSpec.
...
> > Should I get acquainted with RSpec?
> Yes.
haha I guess I'll have to get acquainted with it...
> >> > undefined method `paginate' for #<Class:0x5eb4ad0>"
>
> >> > (SectionsControllerTest):
> >> > NoMethodError: undefined method `response_code' for nil:NilClass
>
> >> > This doesn't mean anything to me.
>
> >> How can that not mean anything to you, when it's telling you exactly
> >> what the error is?
>
> > All this error tells me is that something that is nil is trying to
> > call response_code.
>
> Exactly! So where are you calling response_code ? Find out why you've
> got a nil object there.
> > The error I get with rails server and browsing to
> > the page is
> > undefined method `paginate' for #<Class:0x5eb4ad0>" which tells me
> > that I have to check out the paginate method - something much more
> > direct/useful!!!
>
> There you go, then.
Thing is, nowhere in my application is there a call of response_code!
The error lies in the paginate method - an error revealed by browsing
after doing rails server, NOT by testing! If testing had told me the
paginate method was undefined, I would be satisfied.
In any case.. the better error reporting in cucumber/rspec will
hopefully quell these concerns.
I'll get back to you on how the rspec + cucumber works out. I've been
reading the background of cucumber and I'll get them installed/running
soon.... hopefully.
I came across this though: webrat or capybara? I'm not sure which.
Either seems fine? I think I'll just choose webrat...?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment