Getting a strange error.<div><br></div><div>In a story I have the following step:</div><div><br></div><div>When "I submit a search name" do</div><div> xhr :post, '/searches', {:search => {:given_name => "bob", :family_name => "smith"}}</div>
<div>end</div><div><br></div><div>I am getting:</div><div><br></div><div>ArgumentError: wrong number of arguments (4 for 3)</div><div>stories/searching_story_spec.rb:45 in "I submit a search name"</div><div><br>
</div><div>But I only have 3 arguments in the above list, a symbol, a string and a hash.</div><div><br></div><div>No exception comes up in the test.log</div><div><br></div><div>I am on Rspec trunk from a couple of days ago and Rails 2.1.</div>
<div><br></div><div>Any ideas?</div><div><br></div><div>Mikel</div><div><br></div>