Getting a strange error.<div><br></div><div>In a story I have the following step:</div><div><br></div><div>When &quot;I submit a search name&quot; do</div><div>&nbsp;&nbsp;xhr :post, &#39;/searches&#39;, {:search =&gt; {:given_name =&gt; &quot;bob&quot;, :family_name =&gt; &quot;smith&quot;}}</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 &quot;I submit a search name&quot;</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>