Displaying 1 result from an estimated 1 matches for "problemcontrollerapitest".
2006 Apr 14
8
Error with Web Service tests after upgrading to Rails 1.1.2
...scaffolded a simple Web Services
Controller:
% ./script/generate web_service Problem my_method
Running the test on this Controller, I get:
% ruby test/functional/problem_api_test.rb
Loaded suite test/functional/problem_api_test
Started
E
Finished in 0.047129 seconds.
1) Error:
test_my_method(ProblemControllerApiTest):
NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.length
/usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_service/test_invoke.rb:55:in
`encode_rpc_call''
/...