Created
June 24, 2009 13:50
-
-
Save reddavis/135276 to your computer and use it in GitHub Desktop.
Weird error
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
Command: | |
it "should return 422 if score does not save" do | |
post :create, :post => {:title => 'Some title'}, :user => 'asd' | |
response.response_code.should == 422 | |
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
Error | |
1) | |
ArgumentError in 'QuizController Create Score should return 422 if score does not save' | |
wrong number of arguments (1 for 0) | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route.rb:53:in `to_query' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route.rb:53:in `build_query_string' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route.rb:51:in `each' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route.rb:51:in `build_query_string' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route.rb:243:in `append_query_string' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route.rb:132:in `generate' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:410:in `__send__' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:410:in `generate_without_nil_id_awareness' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:409:in `each' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:409:in `generate_without_nil_id_awareness' | |
/Users/reddavis/Documents/Projects/greenthing2/vendor/plugins/active_scaffold/lib/extensions/nil_id_in_url_params.rb:4:in `generate' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/url_rewriter.rb:205:in `rewrite_path' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/url_rewriter.rb:184:in `rewrite_url' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/url_rewriter.rb:162:in `rewrite' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/test_process.rb:482:in `build_request_uri' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/test_process.rb:436:in `process' | |
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/test_process.rb:395:in `post' | |
/Users/reddavis/Documents/Projects/greenthing2/spec/controllers/quiz_controller_spec.rb:54: | |
/Users/reddavis/Documents/Projects/greenthing2/spec/controllers/quiz_controller_spec.rb:3: | |
Finished in 0.083212 seconds | |
9 examples, 1 failure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment