[rspec-users] mock syntax order

David Chelimsky dchelimsky at gmail.com
Fri Nov 10 18:43:38 EST 2006


On 11/10/06, Paul W Pagel <ppagel at 8thlight.com> wrote:
> I have the following statement
>
> mock_requester.should_receive(:request_with).with("x").any_number_of_times.and_return(@object)
>
> which works fine, but when i do it backwards, which makes the same amount of
> sense syntactically, it fails
>
> mock_requester.should_receive(:request_with).with("x").and_return(@object).any_number_of_times
>
> are all of the mock options deterministic?

Huh?

>  Can they be interchangeable?

Should be doable. Raise an RFE please.

>
>
>
> Paul W Pagel
> www.8thLight.com
> blog.8thLight.com
>
>
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
>


More information about the rspec-users mailing list