aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2017-02-20 13:55:36 +0900
committerGitHub <noreply@github.com>2017-02-20 13:55:36 +0900
commite4088b70023ceebca2948c2c3d270d4279e8e657 (patch)
treea448ad1cb81a281867446b0974c027ede39454f5 /actionpack
parent4f2aa162ed3dc419fa1a7880ecd77d47ba28a8d3 (diff)
parent32b74fe2551ad7e4b5e592bf6efe9b377bce8bbb (diff)
downloadrails-e4088b70023ceebca2948c2c3d270d4279e8e657.tar.gz
rails-e4088b70023ceebca2948c2c3d270d4279e8e657.tar.bz2
rails-e4088b70023ceebca2948c2c3d270d4279e8e657.zip
Merge pull request #28073 from bogdanvlviv/routes-in-tests
Add assertion to polymorphic_routes_test.rb
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/test_case_test.rb6
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