- forward ported from rspec-1 - Closes #9.
- Closes #8.
gemset (with no previous versions of rspec around) for this all to work. Period.
'bundle exec'. This seems to do the right thing all the way down to aruba.
bundler-1.0.0.beta.2, but does work with bundler built from commit b078098, and therefore will hopefully work with bundler-1.0.0.beta.3, which is due out any day).
method, not the result of respond_to? (more reliable).
- call RSpec::Mocks::setup(self) from an example to add double(), mock(), and stub() methods to self, and should_receive(), should_not_receive(), and stub() methods to Object. - NOTE the stub() on self is an alias for double(), whereas the stub() on every other object is a method stub declaration. Closes #7.
- this eliminates the $rspec_mocks global - allows other tools like Cucumber to use RSpec::Mocks through a published API Closes #6.