aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/isolation
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2015-01-17 22:15:15 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2015-01-17 22:15:15 +0530
commit88ff9fd2a36bdf9bce62d2d0c701ffce65616509 (patch)
treecfd1872cebdbf74b491999a1c14adb9c48161901 /railties/test/isolation
parent093e3e8046a36330babd3aa4580a36d8fab3d6d5 (diff)
downloadrails-88ff9fd2a36bdf9bce62d2d0c701ffce65616509.tar.gz
rails-88ff9fd2a36bdf9bce62d2d0c701ffce65616509.tar.bz2
rails-88ff9fd2a36bdf9bce62d2d0c701ffce65616509.zip
Fixed test for assert_welcome
- Test was wrongly using assert with assignment statement.
Diffstat (limited to 'railties/test/isolation')
-rw-r--r--railties/test/isolation/abstract_unit.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb
index 17c3f979c0..2c4d9c5995 100644
--- a/railties/test/isolation/abstract_unit.rb
+++ b/railties/test/isolation/abstract_unit.rb
@@ -69,7 +69,8 @@ module TestHelpers
def assert_welcome(resp)
assert_equal 200, resp[0]
- assert resp[1]["Content-Type"] = "text/html"
+ assert_match 'text/html', resp[1]["Content-Type"]
+ assert_match 'charset=utf-8', resp[1]["Content-Type"]
assert extract_body(resp).match(/Welcome aboard/)
end