diff options
author | Arun Agrawal <arunagw@gmail.com> | 2016-06-01 18:11:23 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2016-06-01 18:11:23 +0530 |
commit | 7b75ca100de247a40c78da89e28f4d71e0635b95 (patch) | |
tree | ee173a49fd203c193bcecfd35b44bd5b041699ba /actionpack | |
parent | 1221eb4f5ed7a6590bef5b37521594420a1ebed5 (diff) | |
parent | 412c21b7dba46703a882237165e4042e195bdcca (diff) | |
download | rails-7b75ca100de247a40c78da89e28f4d71e0635b95.tar.gz rails-7b75ca100de247a40c78da89e28f4d71e0635b95.tar.bz2 rails-7b75ca100de247a40c78da89e28f4d71e0635b95.zip |
Merge pull request #25236 from rajatbansal93/fix-typo
fix typo [ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/prefix_generation_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/test/dispatch/prefix_generation_test.rb b/actionpack/test/dispatch/prefix_generation_test.rb index d75e31db62..b8f0ffb64a 100644 --- a/actionpack/test/dispatch/prefix_generation_test.rb +++ b/actionpack/test/dispatch/prefix_generation_test.rb @@ -166,7 +166,7 @@ module TestGenerationPrefix assert_equal "/pure-awesomeness/blog/posts/1", last_response.body end - test "[ENGINE] url_helpers from engine have higher priotity than application's url_helpers" do + test "[ENGINE] url_helpers from engine have higher priority than application's url_helpers" do get "/awesome/blog/conflicting_url" assert_equal "engine", last_response.body end @@ -319,14 +319,14 @@ module TestGenerationPrefix path = engine_object.polymorphic_url(Post.new, :host => "www.example.com") assert_equal "http://www.example.com/awesome/blog/posts/1", path end - + private def verify_redirect(url, status = 301) assert_equal status, last_response.status assert_equal url, last_response.headers["Location"] assert_equal expected_redirect_body(url), last_response.body end - + def expected_redirect_body(url) %(<html><body>You are being <a href="#{url}">redirected</a>.</body></html>) end @@ -450,14 +450,14 @@ module TestGenerationPrefix get "/absolute_custom_redirect" verify_redirect "http://example.org/foo" end - + private def verify_redirect(url, status = 301) assert_equal status, last_response.status assert_equal url, last_response.headers["Location"] assert_equal expected_redirect_body(url), last_response.body end - + def expected_redirect_body(url) %(<html><body>You are being <a href="#{url}">redirected</a>.</body></html>) end |