daze wrote in post #970545:
> I noticed this...
>
> http://bjhess.com/blog/2008/04/27/five-rails-tips/
>
> But it's outdated a bit. What should I do? I get a DEPRECATION
> WARNING: response.layout has been deprecated. Use template.layout
> instead. but after googling around I can't find a definitive solution.
>
> It's gotta be simple...
You shouldn't be testing the layout of a controller. Instead, you
should be testing (with Cucumber) that the view has the content you
want.
Remember: test behavior, not implementation. You should ideally be able
to change
your whole implementation and still have all your tests pass.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
Sent from my iPhone
--
Posted via http://www.ruby-forum.com/.
--
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