class OptionalDefaultUrlOptionsControllerTest
Public Instance Methods
test_default_url_options_override_missing_positional_arguments()
click to toggle source
# File actionpack/test/controller/base_test.rb, line 287 def test_default_url_options_override_missing_positional_arguments with_routing do |set| set.draw do get "/things/:id(.:format)" => "things#show", :as => :thing end assert_equal "/things/1.atom", thing_path("1") assert_equal "/things/default-id.atom", thing_path end end