1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixed test for assert_welcome

- Test was wrongly using assert with assignment statement.
This commit is contained in:
Prathamesh Sonpatki 2015-01-17 22:15:15 +05:30
parent 093e3e8046
commit 88ff9fd2a3

View file

@ -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