aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorClaudio B <claudiob@users.noreply.github.com>2015-10-25 08:04:40 -0700
committerClaudio B <claudiob@users.noreply.github.com>2015-10-25 08:04:40 -0700
commit504e5e102b847019f08c4c2d1fa30444ed9a59a0 (patch)
treef33a6b1ee72d5d60a1f75cf2940ca0c61a337739 /railties/test
parent5746638e553b1d57ccd0c93b880d29595d1ce2e3 (diff)
parenta97dcde689f03e231ff4d64392fade20608af264 (diff)
downloadrails-504e5e102b847019f08c4c2d1fa30444ed9a59a0.tar.gz
rails-504e5e102b847019f08c4c2d1fa30444ed9a59a0.tar.bz2
rails-504e5e102b847019f08c4c2d1fa30444ed9a59a0.zip
Merge pull request #22060 from sebmck/tweak-wording
Tweaked wording used in some tests.
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/middleware/exceptions_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/application/middleware/exceptions_test.rb b/railties/test/application/middleware/exceptions_test.rb
index 4906f9a1e8..7b4babb13b 100644
--- a/railties/test/application/middleware/exceptions_test.rb
+++ b/railties/test/application/middleware/exceptions_test.rb
@@ -48,7 +48,7 @@ module ApplicationTests
test "uses custom exceptions app" do
add_to_config <<-RUBY
config.exceptions_app = lambda do |env|
- [404, { "Content-Type" => "text/plain" }, ["YOU FAILED BRO"]]
+ [404, { "Content-Type" => "text/plain" }, ["YOU FAILED"]]
end
RUBY
@@ -56,7 +56,7 @@ module ApplicationTests
get "/foo"
assert_equal 404, last_response.status
- assert_equal "YOU FAILED BRO", last_response.body
+ assert_equal "YOU FAILED", last_response.body
end
test "url generation error when action_dispatch.show_exceptions is set raises an exception" do
@@ -67,7 +67,7 @@ module ApplicationTests
end
end
RUBY
-
+
app.config.action_dispatch.show_exceptions = true
get '/foo'