[rspec-users] mock object in array is getting size called on it

David Chelimsky dchelimsky at gmail.com
Fri Jun 26 09:34:35 EDT 2009


On Fri, Jun 26, 2009 at 8:30 AM, doug livesey<biot023 at gmail.com> wrote:
> Copying that (a-la monkey see, monkey do), I get:
>
> /home/doug/work/rails/neville/vendor/gems/rspec-1.2.7/lib/spec/mocks/message_expectation.rb:171:in
> `call'
> /home/doug/work/rails/neville/vendor/gems/rspec-1.2.7/lib/spec/mocks/message_expectation.rb:171:in
> `invoke_return_block'
> /home/doug/work/rails/neville/vendor/gems/rspec-1.2.7/lib/spec/mocks/message_expectation.rb:122:in
> `invoke'
> /home/doug/work/rails/neville/vendor/gems/rspec-1.2.7/lib/spec/mocks/proxy.rb:99:in
> `message_received'
> /home/doug/work/rails/neville/vendor/gems/rspec-1.2.7/lib/spec/mocks/proxy.rb:142:in
> `size'

Ah - so close!!!!!! Try [1..10] - I'm pretty sure that the next line
will reveal our culprit, as that will show the code that is actually
calling the size method.


More information about the rspec-users mailing list