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:
parent
093e3e8046
commit
88ff9fd2a3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue