Skip to content

Instantly share code, notes, and snippets.

@umdstu
Last active March 17, 2016 13:37
Show Gist options
  • Save umdstu/983c68c2ef966e2f4697 to your computer and use it in GitHub Desktop.
Save umdstu/983c68c2ef966e2f4697 to your computer and use it in GitHub Desktop.
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"}> ...
App::Application.routes.draw do
match 'docs/pdf/:id(.:format)' => 'docs#pdf'
end
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