[rspec-users] doesn't rspec check the existence of template file

foreverman seanliugm at gmail.com
Tue Aug 23 06:02:27 EDT 2011


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

The above controller test will pass even the 'show' template doesn't

I am curious if this is a bug or I did something wrong.


More information about the rspec-users mailing list