diff options
| author | Yves Senn <yves.senn@gmail.com> | 2015-11-04 16:32:53 -0500 |
|---|---|---|
| committer | Yves Senn <yves.senn@gmail.com> | 2015-11-04 16:35:31 -0500 |
| commit | a80fb6f9b3b553b59a486d7aa4673cc47397fab5 (patch) | |
| tree | 6fa2eb2d8e1e229ad0021faac94b9ba697990280 /actionpack/lib/action_controller/metal/basic_implicit_render.rb | |
| parent | 7b471dbf5bdab9579962e71bcf2e24e01bcc99ef (diff) | |
| download | rails-a80fb6f9b3b553b59a486d7aa4673cc47397fab5.tar.gz rails-a80fb6f9b3b553b59a486d7aa4673cc47397fab5.tar.bz2 rails-a80fb6f9b3b553b59a486d7aa4673cc47397fab5.zip | |
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.
Diffstat (limited to 'actionpack/lib/action_controller/metal/basic_implicit_render.rb')
0 files changed, 0 insertions, 0 deletions
