mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unused methods
* `assert_header` and `assert_body` were unused since 6f6a589
.
* `assert_success` and `assert_missing` were unused since added.
This commit is contained in:
parent
17ad4eb6fb
commit
41c8e41ff1
1 changed files with 0 additions and 16 deletions
|
@ -82,22 +82,6 @@ module TestHelpers
|
||||||
assert_match "charset=utf-8", resp[1]["Content-Type"]
|
assert_match "charset=utf-8", resp[1]["Content-Type"]
|
||||||
assert extract_body(resp).match(/Yay! You.*re on Rails!/)
|
assert extract_body(resp).match(/Yay! You.*re on Rails!/)
|
||||||
end
|
end
|
||||||
|
|
||||||
def assert_success(resp)
|
|
||||||
assert_equal 202, resp[0]
|
|
||||||
end
|
|
||||||
|
|
||||||
def assert_missing(resp)
|
|
||||||
assert_equal 404, resp[0]
|
|
||||||
end
|
|
||||||
|
|
||||||
def assert_header(key, value, resp)
|
|
||||||
assert_equal value, resp[1][key.to_s]
|
|
||||||
end
|
|
||||||
|
|
||||||
def assert_body(expected, resp)
|
|
||||||
assert_equal expected, extract_body(resp)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
module Generation
|
module Generation
|
||||||
|
|
Loading…
Reference in a new issue