diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-01-06 15:24:13 -0800 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-01-06 15:54:35 -0800 |
commit | 7ed5251f80b0e37caf6e255875860157f95ee935 (patch) | |
tree | 2b2da51df7a7875c3d3820c2bfa02d3e98ccdd8d /lib/puppet/util/rdoc/code_objects.rb | |
parent | fb8509acbd947712cac094a49227d28a16a366aa (diff) | |
download | puppet-7ed5251f80b0e37caf6e255875860157f95ee935.tar.gz puppet-7ed5251f80b0e37caf6e255875860157f95ee935.tar.xz puppet-7ed5251f80b0e37caf6e255875860157f95ee935.zip |
maint: Work-around for a Mocha bug
Mocha is leaving behind a copy of stubbed methods in the singleton class of the
object on which the method is stubbed. So a later stub to any_instance of the
class isn't seen by the original object.
This change works around the problem by adding a follow-up "test" that removes
the method from the singleton class.
See: https://github.com/floehopper/mocha/issues#issue/20
Paired-With: Paul Berry
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions