I've been neglecting these errors for a weeks because I don't know
what's going on. My environment is rspec, capybara and factory_girl
under Rails 3.1.3 and Ruby 1.9.2. I'm also using spork and guard but
this happens without them.
The mailer tests are failing because apparently the UrlHelper isn't
loaded.
1) User delivers email to user
Failure/Error: user.send_password_reset
ActionView::Template::Error:
No route matches
{:action=>"edit", :controller=>"password_resets"}
# ./app/views/mailer/password_reset.text.erb:4:in
`_app_views_mailer_password_reset_text_erb__1662523378608014744_70180362078380'
# ./app/mailers/mailer.rb:11:in `password_reset'
# ./app/models/user.rb:34:in `send_password_reset'
# ./spec/models/user_spec.rb:12:in `block (2 levels) in <top
(required)>'
There is definitely a route for password_resets#edit
(resources :password_resets) and it works in development and
production, which is the confusing part. I think the tests aren't
configured correctly in my spec_helper.rb -- the gist for that is
here: https://gist.github.com/1449060
While an outright answer would be nice, I'd like to get help on how to
go about investigating this kind of thing better. Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.