rspec/rspec-rails — Issue #470: render_template gives false positives
Author: freegenie
Created: 2011-12-03 23:13:20+00:00
State: open

I'm testing a normal if @record.save redirect else render

```
describe 'non valid email' do
let!(:req) do
post :create, :interest => {:email => 'foobar', :topics => 'food,sport', :flow => 2 }
end
it 'should render ask_email_and_interest template' do
# none of the following fails
response.should render_template('ask_email_and_interest')
response.should render_template('ask_email_and')
response.should render_template('ask_email')
end
end

```

Using version 2.7.0 with Rails 3.1.1