Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test case to lock down the behavior of #7842

  • Loading branch information...
commit 4d10d8ba5d0204aa4045803cfa00e5311ae54ffe 1 parent 50337da
@senny senny authored committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/dispatch/prefix_generation_test.rb
View
5 actionpack/test/dispatch/prefix_generation_test.rb
@@ -241,6 +241,11 @@ def setup
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",
Please sign in to comment.
Something went wrong with that request. Please try again.