[rspec-users] doesn't rspec check the existence of template file
foreverman
seanliugm at gmail.com
Tue Aug 23 06:02:27 EDT 2011
Hey,
I am using rspec (1.3.0) and rspec-rails (1.3.2) for my current rails2
project, I found that in my controller test, rspec doesn't check the
existence of view template. For example,
it "should render show template" do
get :show
response.should render_template :show
end
The above controller test will pass even the 'show' template doesn't
exist.
I am curious if this is a bug or I did something wrong.
Thanks.
More information about the rspec-users
mailing list