This project is archived and is in readonly mode.
config.cache_classes and ActionMailer::Base.default_url_options
Reported by sewid | February 6th, 2011 @ 08:00 AM
I have this is my test.rb:
config.cache_classes = true
config.action_mailer.default_url_options = {
:host => 'localhost:3000',
:only_path => false
}
When running tests, I get:
/Users/sebastian/.rvm/gems/ruby-1.9.2-p136/gems/actionmailer-3.0.3/lib/action_mailer/base.rb:763:in
deprecated_url_options': You can no longer call
ActionMailer::Base.default_url_options directly. You need to set
config.action_mailer.default_url_options. If you are using
ActionMailer standalone, you need to include the routing
url_helpers directly.
This problem does not occur, when using:
config.cache_classes = false
Regards,sewid
Comments and changes to this ticket
-
sewid February 6th, 2011 @ 10:23 PM
Seems to be an rspec problem. The error occurs with rspec 2.5.0 (I did not recognize, that there was an update). When I use 2.4.0, the tests passes without problems.
-
Andrew White February 9th, 2011 @ 06:53 AM
- State changed from new to needs-more-info
- Assigned user set to Andrew White
- Importance changed from to Low
sewid, can you supply a backtrace - I can't anything in the rspec-rails 2.4 -> 2.5 diff that refers to default_url_options so I can't track it down at the moment.
-
sewid February 9th, 2011 @ 06:57 AM
Hi,
I updatesd to 2.5.0 yesterday and now, everything works. But when hitting the problem, I restored an old Gemfile - so it may be, there is a nother gem causing this problem.
I will update this ticket, if I find the reason. At the moment, everything is working (event with rspec 2.5.0).Regards,
sewid -
Andrew White March 6th, 2011 @ 04:28 PM
- State changed from needs-more-info to stale
Marking as stale as no feedback for a month
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>