diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-12-28 12:07:18 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-12-28 12:07:18 +0900 |
commit | 41c8e41ff16b629ca520ccc3d098b440fa6df1ef (patch) | |
tree | 9519f88f5f90d207375f18155837a731ae2c05fe /railties/test/isolation | |
parent | 17ad4eb6fb25e0c1dbd6772718a9097d63b64ad2 (diff) | |
download | rails-41c8e41ff16b629ca520ccc3d098b440fa6df1ef.tar.gz rails-41c8e41ff16b629ca520ccc3d098b440fa6df1ef.tar.bz2 rails-41c8e41ff16b629ca520ccc3d098b440fa6df1ef.zip |
Remove unused methods
* `assert_header` and `assert_body` were unused since 6f6a589.
* `assert_success` and `assert_missing` were unused since added.
Diffstat (limited to 'railties/test/isolation')
-rw-r--r-- | railties/test/isolation/abstract_unit.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index 0ca0de5e6f..6568a356d6 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -82,22 +82,6 @@ module TestHelpers assert_match "charset=utf-8", resp[1]["Content-Type"] assert extract_body(resp).match(/Yay! You.*re on Rails!/) 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 module Generation |