diff options
author | Wojciech Wnętrzak <w.wnetrzak@gmail.com> | 2015-07-15 21:04:21 +0200 |
---|---|---|
committer | Wojciech Wnętrzak <w.wnetrzak@gmail.com> | 2015-09-17 15:57:09 +0200 |
commit | 472358d0307c09e2d20f68cae60ddc46248cad08 (patch) | |
tree | 140b3cce9856c19ddb862bb36506073c8551ea33 /railties/test | |
parent | 1ebd987aeba95ee65fc2647581fb87fed55a0a23 (diff) | |
download | rails-472358d0307c09e2d20f68cae60ddc46248cad08.tar.gz rails-472358d0307c09e2d20f68cae60ddc46248cad08.tar.bz2 rails-472358d0307c09e2d20f68cae60ddc46248cad08.zip |
Fix displaying mailer previews on non local requests.
When config `action_mailer.show_previews` is set, previews are displayed
regardless of local request check.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/mailer_previews_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/mailer_previews_test.rb b/railties/test/application/mailer_previews_test.rb index e462d2c15e..643d876a26 100644 --- a/railties/test/application/mailer_previews_test.rb +++ b/railties/test/application/mailer_previews_test.rb @@ -31,7 +31,7 @@ module ApplicationTests test "/rails/mailers is accessible with correct configuraiton" do add_to_config "config.action_mailer.show_previews = true" app("production") - get "/rails/mailers" + get "/rails/mailers", {}, {"REMOTE_ADDR" => "4.2.42.42"} assert_equal 200, last_response.status end |