diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2017-02-20 00:35:14 +0200 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2017-02-20 01:27:32 +0200 |
commit | 32b74fe2551ad7e4b5e592bf6efe9b377bce8bbb (patch) | |
tree | a448ad1cb81a281867446b0974c027ede39454f5 /actionpack | |
parent | f1a097733a6923d4c7b6b4413394ce86e17198d6 (diff) | |
download | rails-32b74fe2551ad7e4b5e592bf6efe9b377bce8bbb.tar.gz rails-32b74fe2551ad7e4b5e592bf6efe9b377bce8bbb.tar.bz2 rails-32b74fe2551ad7e4b5e592bf6efe9b377bce8bbb.zip |
Set correct "routes" in tests cases
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/test_case_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb index e084e45373..891ce0e905 100644 --- a/actionpack/test/controller/test_case_test.rb +++ b/actionpack/test/controller/test_case_test.rb @@ -134,7 +134,7 @@ XML end def create - head :created, location: "created resource" + head :created, location: "/resource" end def render_cookie @@ -893,12 +893,12 @@ XML assert_response :created # Redirect url doesn't care that it wasn't a :redirect response. - assert_equal "created resource", @response.redirect_url + assert_equal "/resource", @response.redirect_url assert_equal @response.redirect_url, redirect_to_url # Must be a :redirect response. assert_raise(ActiveSupport::TestCase::Assertion) do - assert_redirected_to "created resource" + assert_redirected_to "/resource" end end |