…revious stub. In a case like: double = stub.as_null_object double.stub(:foo => "bar") double.should_receive(:foo) double.foo ..it used to return "bar", but due to my changes in a5f296e it was returning `self`.
(Actually, I'm mostly doing this just to trigger a travis build. A recent change in rspec-expectations broke the rspec-mocks travis build, and now that it's fixed, I want to see that the rspec-mocks build is passing. I figured I may as well make a useful but non functional change while I'm at it, though).  rspec/rspec-expectations@4024344#commitcomment-1496381  rspec/rspec-expectations@a3e2839
Given a case like: double = mock.as_null_object double.should_receive(:bar) ...`double.bar` was returning nil when it should return the double itself, since that's the expected null object behavior and no implementation was provided for the mock expectation. Closes #155.
…into a string. Closes #154.
Also extract base ExpectationChain.
…nts. This needs to be documented, but I want to get feedback from others before spending effort on that.
This allows chaining: stub_const("Foo", double).stub(:foo)
… with default behavior.