[rspec-users] ArgumentError during rake specs

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


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:


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

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



More information about the rspec-users mailing list