[rspec-users] Render_template return true when only part of template name match. Bug?
David Chelimsky
dchelimsky at gmail.com
Thu Oct 30 01:40:49 EDT 2008
On Thu, Oct 30, 2008 at 12:37 AM, Alex Rudyk <alex.rudyk at gmail.com> wrote:
> I have this code
>
> response.should render_template(:my_messages)
>
> It returns true also if :messages template rendered. I am confused, is this
> a bug or expected behavior?
Docs say use strings:
http://rspec.rubyforge.org/rspec-rails/1.1.11/classes/Spec/Rails/Matchers.html#M000078
Not sure why symbols are working at all :)
>
> Alex
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
More information about the rspec-users
mailing list