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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
42791cadd55830917d960e1bc96490ad?d=identicon&s=25 Alex Rudyk (Guest)
on 2008-10-30 06:40
(Received via mailing list)
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
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2008-10-30 06:43
(Received via mailing list)
On Thu, Oct 30, 2008 at 12:37 AM, Alex Rudyk <alex.rudyk@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/clas...

Not sure why symbols are working at all :)
This topic is locked and can not be replied to.