From 88ff9fd2a36bdf9bce62d2d0c701ffce65616509 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Sat, 17 Jan 2015 22:15:15 +0530 Subject: Fixed test for assert_welcome - Test was wrongly using assert with assignment statement. --- railties/test/isolation/abstract_unit.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'railties') 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 -- cgit v1.2.3