[rspec-users] render_template failure

Daniel Lidström dlidstrom at gmail.com
Sat Sep 4 14:47:00 EDT 2010


On Sep 4, 8:41 pm, Daniel Lidström <dlidst... at gmail.com> wrote:
>           response.should render_template("user/show")

I noticed a mistake on the above line. However, the correct line (with
"users/show") also fails:

 daniel at ubuntu /home/daniel/programming/bowling (signing-up) $ ls app/
views/users/show.html.erb
app/views/users/show.html.erb
 daniel at ubuntu /home/daniel/programming/bowling (signing-up) $ rspec
spec/requests/users_spec.rb -e "should make a new user"
Run filtered using {:full_description=>/(?-mix:should make a new
user)/}
F

Failures:
  1) Users signup success should make a new user
     Failure/Error: response.should render_template("users/show")
     @request must be an ActionDispatch::Request
     # ./spec/requests/users_spec.rb:34
     # ./spec/requests/users_spec.rb:26

Finished in 0.27922 seconds
1 example, 1 failure


More information about the rspec-users mailing list