Alex Rudyk
2008-Oct-30 05:37 UTC
[rspec-users] Render_template return true when only part of template name match. Bug?
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? Alex
David Chelimsky
2008-Oct-30 05:40 UTC
[rspec-users] Render_template return true when only part of template name match. Bug?
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 >