[rspec-users] xhr :post giving wrong number of arguments on rails 2.1?

Mikel Lindsaar raasdnil at gmail.com
Thu Jun 5 01:33:20 EDT 2008

Getting a strange error.
In a story I have the following step:

When "I submit a search name" do
  xhr :post, '/searches', {:search => {:given_name => "bob", :family_name =>

I am getting:

ArgumentError: wrong number of arguments (4 for 3)
stories/searching_story_spec.rb:45 in "I submit a search name"

But I only have 3 arguments in the above list, a symbol, a string and a

No exception comes up in the test.log

I am on Rspec trunk from a couple of days ago and Rails 2.1.

Any ideas?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080605/3f24b2b1/attachment.html>

More information about the rspec-users mailing list