[rspec-users] changes in 0.8 and greater - should_
mailing_lists at railsnewbie.com
Mon Apr 9 17:36:49 EDT 2007
Thanks for the info, Aslak.
What is the appropriate form of render in the view specs to use?
Doing something like this:
I'm using restful-routes and markaby.
I know there was a bug in the tracker about markaby templates. I'll
follow up on that if this is the case here.
On Apr 9, 2007, at 4:43 PM, aslak hellesoy wrote:
> On 4/9/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
>> Has the should_... syntax changed? I'm getting errors when running
>> the following:
> Object now only gets monkeypatched with two methods: should and
> should_anything_else will no longer work.
>> I thought the syntax changed to something like the following:
>> obj.should render(:index)
> Syntactically, yes. But the API has changed too, so now you must say:
> response.should render_template(:index)
> See doc/output/rdoc-rails/index.html
> (rspec_on_rails/lib/spec/rails/matchers.rb RDoc) and
> example_rails_app/spec/controllers/people_controller_spec.rb for
>> but this doesn't seem to work.
>> rspec-users mailing list
>> rspec-users at rubyforge.org
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users