Render_template return true when only part of template name match. Bug?


#1

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


#2

On Thu, Oct 30, 2008 at 12:37 AM, Alex R. removed_email_address@domain.invalid
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 :slight_smile: