HomePhorge

(#6830) Fix overly stubbed tests
29f3dda2aaa4Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#6830) Fix overly stubbed tests

In Ruby 1.9 calling .each on a stub calls to_a, and if you're not
stubbing to_a you get:

unexpected invocation: #<Mock:option1>.to_a()

Could have stubbed to_a also, but less stubbing is better in these cases

Reviewed-by: Jesse Wolfe <jesse@puppetlabs.com>

Details

Provenance
Matt Robinson <matt@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU5e9dfdcec4a3: (#6830) Fix instance_variables now comes back as symbols
Branches
Unknown
Tags
Unknown

Event Timeline

Matt Robinson <matt@puppetlabs.com> committed rPU29f3dda2aaa4: (#6830) Fix overly stubbed tests (authored by Matt Robinson <matt@puppetlabs.com>).Mar 29 2011, 8:00 PM