Last active
March 17, 2016 13:37
-
-
Save umdstu/983c68c2ef966e2f4697 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failure | |
test_test(DocControllerTest) [/local/proj/app/test/functional/docs_controller_test.rb:2]: | |
The recognized options <{"controller"=>"docs", | |
"action"=>"pdf", | |
"id"=>"aaaaaaa"} did not match <{"controller"=>"docs", | |
"action"=>"pdf", | |
"id"=>"aaaaaaa", | |
"opt"=>"blah blah"}>, difference: <{"opt"=>"blah blah"}> ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App::Application.routes.draw do | |
match 'docs/pdf/:id(.:format)' => 'docs#pdf' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test "test" do | |
assert_routing("/docs/pdf/aaaaaaa", | |
controller: 'docs', | |
action: 'pdf', | |
id: 'aaaaaaa', | |
opt: 'blah blah') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment