mock.should_receive(:write).with("\n").ordered
Append .ordered as above
On Dec 17, 2010, at 6:12 AM, "niku -E:)" <[email protected]> wrote:
> Hello.
> My name is niku.
>
> I'm using rspec 2.2.1
>
> /tmp% rspec --version
> 2.2.1
>
> I tested http://gist.github.com/744935 and passed.
>
> /tmp% rspec stdout_spec.rb
> ..
>
> Finished in 0.00105 seconds
> 2 examples, 0 failures
>
> But I expected test fail.
> Because It's wrong order that argument of 'write' method.
>
> How do I check order of argument ?
>
> regards.
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users