[rspec-users] strange mock error

aslak hellesoy aslak.hellesoy at gmail.com
Mon Jun 25 06:08:18 EDT 2007


On 6/25/07, David Smalley <david.smalley.lists at googlemail.com> wrote:
> I'm testing using the rspec mocking framework and rspec 1.0.5 and I'm
> getting the following strange error:
>
>
> #<Spec::Mocks::Mock:0x337f7c8> expected :set_defaults with
> (#<Service:0x19c4040 @name="Service_1023">, {"1"=>"1", "2"=>"2"}) but
> received it with (#<Service:0x19c4040 @name="Service_1023">, {"1"=>"1",
> "2"=>"2"})
>
> Oddly, it looks like what its expecting and what its receiving are the same.
> Why would this fail?
>

I don't know. We need more context information. Can you post some code
so we can reproduce this?

Aslak

> David
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list