1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test
Yves Senn a80fb6f9b3 tests, define Rails.root before loading Action Mailer.
Since `bin/test` would define `Rails.root` before loading AM but `bundle
exec rake` would define it after loading AM, this lead to the following
test failure when using `bin/test`:

```
--- expected
+++ actual
@@ -1 +1 @@
-{:location=>"/var/folders/_r/9kh50y4j0vn7zgg2p65z1lcm0000gn/T/mails"}
+{:location=>"/Users/senny/Projects/rails/actionmailer/tmp/mails"}
```

This patch ensures that `Rails.root` is defined when loading AM to
achieve consistent test results.
2015-11-04 16:35:31 -05:00
..
fixtures Removing unused mailer templates 2015-03-01 16:07:24 -03:00
mailers Added test for any if called without specifying any format 2015-09-18 22:56:42 +05:30
abstract_unit.rb tests, define Rails.root before loading Action Mailer. 2015-11-04 16:35:31 -05:00
assert_select_email_test.rb Deprecated .deliver / .deliver! to .deliver_now / .deliver_now! 2014-08-20 17:48:34 +03:00
asset_host_test.rb fix tests on action_mailer 2014-10-07 17:40:59 -05:00
base_test.rb change test method name to the appropriate name 2015-09-19 17:33:14 +09:00
delivery_methods_test.rb tests, define Rails.root before loading Action Mailer. 2015-11-04 16:35:31 -05:00
i18n_with_controller_test.rb Delete needless require 'active_support/deprecation' 2015-10-20 20:02:59 +09:00
log_subscriber_test.rb Deprecated .deliver / .deliver! to .deliver_now / .deliver_now! 2014-08-20 17:48:34 +03:00
mail_helper_test.rb Make ActionMailer #cache helper a no-op, not an exception 2015-04-28 13:56:42 -06:00
mail_layout_test.rb Remove unnecessary setup and teardown. 2014-05-13 15:03:53 +08:00
message_delivery_test.rb Removed duplicate requiring minitest/mock as it is already required in method_call_assertions 2015-08-26 19:43:54 +05:30
test_case_test.rb [ActionMailer] Rename test/test_test to test/test_case_test 2014-08-30 14:38:33 +00:00
test_helper_test.rb assert_emails in block form use the given number as expected value 2015-05-09 18:59:59 +09:00
url_test.rb let the AM test suite pass in 1.9 2014-11-24 22:03:54 -08:00