[rspec-users] ArgumentError during rake specs

Marc Chung mchung at gmail.com
Thu Jul 16 02:48:47 EDT 2009


Hello,

On a recently setup machine, a freshly checked out project started to
fail in the strangest way. When executing 'rake spec', all the specs
would fail because of the same ArgumentError:

"wrong number of arguments (0 for 1)"

This gist contains the backtrace of a single failing test:
http://gist.github.com/148267

http://gist.github.com/148267

Line 180 of vendor/rails/actionpack/lib/action_controller/test_case.rb:
180 is:

   def setup_controller_request_and_response
      @request = TestRequest.new
      @response = TestResponse.new
      ...
   end

Which doesn't take an argument at all.

Has anyone seen this behavior before?
Does anyone have any ideas on how to further debug this problem?
I'm running Ruby 1.8.7, Rails 2.3.0, and RSpec 1.2.6

Regards,

-Marc


More information about the rspec-users mailing list