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

David Chelimsky dchelimsky at gmail.com
Fri Jun 26 10:44:31 EDT 2009


On Fri, Jun 26, 2009 at 9:36 AM, doug livesey<biot023 at gmail.com> wrote:
> That'll be:
>
> /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'
> /home/doug/work/rails/neville/vendor/gems/rspec-1.2.7/lib/spec/mocks/message_expectation.rb:162:in
> `invoke_consecutive_return_block'
> /home/doug/work/rails/neville/vendor/gems/rspec-1.2.7/lib/spec/mocks/message_expectation.rb:120:in
> `invoke'
> /home/doug/work/rails/neville/vendor/gems/rspec-1.2.7/lib/spec/mocks/proxy.rb:101:in
> `message_received'
> /home/doug/work/rails/neville/vendor/gems/rspec-1.2.7/lib/spec/mocks/proxy.rb:142:in
> `new'
> /home/doug/work/rails/neville/app/models/property.rb:20:in
> `bulk_create_from_holly'

This last line is where you should look, if you haven't already.

> Sorry for the delays -- keep getting called away into other things!
> & thanks,
>    Doug.


More information about the rspec-users mailing list