aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2012-11-04 14:59:15 +0100
committerYves Senn <yves.senn@gmail.com>2012-11-04 15:15:29 +0100
commit88ba1fb03e24411f38c9dc8c776f17bcbd28dcdf (patch)
treef91e89471cc229dc051fceff3d9939258869f295 /actionpack/test/dispatch
parentb1fe78e0cb81d6d291b982927353c4fa39d8e269 (diff)
downloadrails-88ba1fb03e24411f38c9dc8c776f17bcbd28dcdf.tar.gz
rails-88ba1fb03e24411f38c9dc8c776f17bcbd28dcdf.tar.bz2
rails-88ba1fb03e24411f38c9dc8c776f17bcbd28dcdf.zip
test case to lock down the behavior of #7842
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r--actionpack/test/dispatch/prefix_generation_test.rb5
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 cfbf970a37..113608ecf4 100644
--- a/actionpack/test/dispatch/prefix_generation_test.rb
+++ b/actionpack/test/dispatch/prefix_generation_test.rb
@@ -241,6 +241,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",