Pass the instance to any instance stubs.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Pass the instance to should_receive matchers on any instance too.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Remove the unused ignore_instance parameter.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Merge branch 'pass-instance-to-any-instance-stubs' of https://github.com/samphippen/rspec-mocks into pass-instance-to-any-instance-stubs
Simpler implementation of yielding args for any instance calls.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Refine the any_instance passing implementation as per myron's suggestions.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Remove the with isolated configuration spec.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Add link to Test Double bliki

I noticed you are already linking to the xUnitPatterns definitions and Martin Fowler's bliki Mocks Aren't Stubs.

I thought it would be good to link to Martin Fowler's Test Double bliki.  I feel it is a clear, compact summary of the information in the other two links.
Merge pull request #379 from maxlinc/patch-1

Add link to Test Double bliki
Turn on yielding to any_instance by default and fix config handling.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Use any instance yield names myron suggested.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Add a changelog entry for #351.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
remove #stub and #mock
Don't override let definitions with argument matchers

see https://github.com/rspec/rspec-mocks/issues/102

ArgumentMatchers (together with ExampleMethods) were
included into the ExampleGroup instance's metaclass.
This caused argument matcher methods such as boolean()
or hash_containing() to override let definitions with
the same name.

This commit fixes this bug by including
ArgumentMatchers into the example group's class and
not into the metaclass.
Revert "Don't override let definitions with argument matchers"

This reverts commit 38377efc9125bed90bea19c804bbac47e045cf0c.
Merge pull request #351 from samphippen/pass-instance-to-any-instance-stubs

Pass the instance to any instance stubs.
rspec-mocks is always loaded from source via `gemspec` command
Update changelog to reflect 2.14.2 release.

[ci skip]
Exhibit problem with stubbing and prepend

As described in #384 the way that original methods are stashed
breaks the ability to stub the non-prepended method.
Allow stubbing instance methods on a prepended class