Skip to content

Commit

Permalink
test case to lock down the behavior of rails#7842
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Nov 4, 2012
1 parent b1fe78e commit 88ba1fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actionpack/test/dispatch/prefix_generation_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ def setup
assert_equal "/something/", app_object.root_path assert_equal "/something/", app_object.root_path
end 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 test "[OBJECT] generating engine's route with url_for" do
path = engine_object.url_for(:controller => "inside_engine_generating", path = engine_object.url_for(:controller => "inside_engine_generating",
:action => "show", :action => "show",
Expand Down

0 comments on commit 88ba1fb

Please sign in to comment.