diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-08 12:34:15 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-08 12:34:15 -0800 |
commit | 5222a33d0dc67f4984e26ccab46722b4ee2277d5 (patch) | |
tree | 8eec91871e56416f7d7c7bdec3644f9c5cddbc0e /actionpack/test | |
parent | 70f384e0196fd4f8bcb7dea05af8611df4578563 (diff) | |
parent | d12e75340996f174649ed584b062f46aa030e0dd (diff) | |
download | rails-5222a33d0dc67f4984e26ccab46722b4ee2277d5.tar.gz rails-5222a33d0dc67f4984e26ccab46722b4ee2277d5.tar.bz2 rails-5222a33d0dc67f4984e26ccab46722b4ee2277d5.zip |
Merge pull request #8149 from senny/backport_7842_to_rails_3_2_stable
backport: handle trailing slash with engines
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/prefix_generation_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/prefix_generation_test.rb b/actionpack/test/dispatch/prefix_generation_test.rb index bd5b5edab0..88dc2c093b 100644 --- a/actionpack/test/dispatch/prefix_generation_test.rb +++ b/actionpack/test/dispatch/prefix_generation_test.rb @@ -248,6 +248,11 @@ module TestGenerationPrefix assert_equal "/something/", app_object.root_path end + test "[OBJECT] generating application's route includes default_url_options[:trailing_slash]" do + RailsApplication.routes.default_url_options[:trailing_slash] = true + assert_equal "/awesome/blog/posts", engine_object.posts_path + end + test "[OBJECT] generating engine's route with url_for" do path = engine_object.url_for(:controller => "inside_engine_generating", :action => "show", |