Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rspec/rspec-mocks
...
head fork: rspec/rspec-mocks
Checking mergeability… Don't worry, you can still create the pull request.
This comparison is big! We're only showing the most recent 250 commits
Commits on Jun 11, 2011
@dchelimsky dchelimsky ignore .rbc files 0fd2662
@dchelimsky dchelimsky dev: lock gem versions - rake-0.9.2, aruba-0.3.6 c76eb8a
@dchelimsky dchelimsky ci: tell travis to run bin/rake acb2f54
@dchelimsky dchelimsky dev:clean up Rakefile 0e88ecf
@dchelimsky dchelimsky dev: ficks taipoh e96faf3
@dchelimsky dchelimsky dev: add rdoc to Gemfile 41e56e3
@dchelimsky dchelimsky dev: lock the gherkin version 6f75d7f
@dchelimsky dchelimsky dev: remove dep on rdoc 2c55d9a
@dchelimsky dchelimsky dev: git ignore yard artifacts 103238d
@dchelimsky dchelimsky update binstubs 29f470e
Commits on Jun 12, 2011
@kaiwren kaiwren Merge to master 8f16765
Commits on Jun 13, 2011
@myronmarston myronmarston Use a better method of detecting psych.
The psych/syck specs were failing on 1.9.1 on travis ci.  You can compile ruby with the libyaml option but not actually have psych compiled in, apparently.
17f3518
@dchelimsky dchelimsky dev: remove autotest/discover 7f0448e
@dchelimsky dchelimsky dev: remove executables from gemspec 42b2edf
@dchelimsky dchelimsky dev: constrain file list in gemspec 7dd57f4
Commits on Jun 17, 2011
@alindeman alindeman [#58] Ignore the fact that should_receive expectations will fail to b…
…e satisfied in tests that raise errors earlier
36d9781
@kaiwren kaiwren Merge pull request #4 from alindeman/issue58
Ignore the fact that should_receive expectations will fail to be satisfied in tests that raise errors earlier
e786c2a
@kaiwren kaiwren Merge branch 'issue58' of github.com:c42engineering/rspec-mocks into …
…issue58
3c129ae
@kaiwren kaiwren Fixed broken feature related to multiple method stubs and added anoth…
…er for any_instance.stub.with - this should close Issue #58
e542b18
Commits on Jun 19, 2011
@justinko justinko Merge pull request #65 from c42engineering/issue58
Support for any_instance argument matching. Closes #58
5a1666c
@justinko justinko changelog b970638
Commits on Jun 21, 2011
@dchelimsky dchelimsky ci: exclude local dev gems from travis bundle b9991bd
@dchelimsky dchelimsky dev: bump aruba timeout to 5 seconds f5b226f
@dchelimsky dchelimsky ruby-1.9.1: use fully qualified names in specs c77dbeb
@dchelimsky dchelimsky dev: remove bin dir from git fae8749
Commits on Jun 23, 2011
@dchelimsky dchelimsky bump cukes to 1.0 b6d93c5
@dchelimsky dchelimsky dev: constrain rcov to ruby 1.8 builds 54ec0a1
Commits on Jun 28, 2011
Tibor Claassen Check for #failure_message_for_should or #failure_message instead of …
…#description to detect a matcher.

- #description optional for a matcher and common in other domains
- one of #failure_message_for_should or #failure_message is mandatory
  - #failure_message is acceptable for backward compatibility
- Closes #64
0c66bdc
@dchelimsky dchelimsky Changelog 0e482f4
@dchelimsky dchelimsky move Changelog to project root 153d051
Commits on Jul 02, 2011
@dchelimsky dchelimsky dev: reduce warnings aca59bc
@dchelimsky dchelimsky reduce warnings generated by rspec-mocks f04b8bb
Commits on Jul 19, 2011
@kaiwren kaiwren Fixing #67 - unstub support for any_instance 0a7cde5
Commits on Jul 20, 2011
@justinko justinko Merge pull request #68 from c42engineering/Issue67
Fixing #67 - unstub support for any_instance
949c995
Commits on Aug 14, 2011
@kaiwren kaiwren Issue #70 add support for #stub_chain to any_instance c6af9f9
@justinko justinko Merge pull request #71 from c42engineering/issue70
Issue #70: add support for #stub_chain to any_instance
6f96ad3
@justinko justinko changelog 82e4ff9
Commits on Aug 19, 2011
@alextk alextk use __send__ method instead of send method, to cover cases when targe…
…t object send method is overridden to expose business api
f33a832
@justinko justinko Merge pull request #74 from alextk/master
Use __send__ method instead of send
66c9c20
@justinko justinko changelog 63ed352
Commits on Aug 20, 2011
@booch booch document stubbing methods with method names and return values passed …
…as a hash
b7136c1
Commits on Aug 24, 2011
@dchelimsky dchelimsky Merge pull request #75 from booch/master
Document stubbing with methods / return values passed as a hash
c32d62a
@dchelimsky dchelimsky doc tweaks/clarification cfa7a96
Commits on Aug 26, 2011
@adomokos adomokos Add new feature for receive_counts on mocks 52daacc
Commits on Sep 02, 2011
@adomokos adomokos Removing incorrect description 14c52b9
@adomokos adomokos Adding new feature - stubbing with arguments 45b3872
@jredville jredville add argument_matchers features for explicit arguments, anything, any_…
…args, and no_args
5769297
@jredville jredville Merge branch 'master' of https://github.com/rspec/rspec-mocks b08c75e
Commits on Sep 03, 2011
@dchelimsky dchelimsky Merge pull request #77 from adomokos/add_receive_count_feature
Add new feature for receive_counts on mocks
8d35db6
Commits on Sep 29, 2011
@dchelimsky dchelimsky improve explanation as to why we raise NoMethodError on to_ary b0ea68d
@dchelimsky dchelimsky ci: stick to rubies supported by travis 66d5295
Commits on Oct 09, 2011
@dchelimsky dchelimsky Merge pull request #80 from adomokos/add_stub_with_arguments_feature
Adding new cuke feature - stubbing with arguments
fb854a6
@dchelimsky dchelimsky Tweak the "stub with arguments" cuke
- #80.
7a2f273
@dchelimsky dchelimsky Merge pull request #81 from jredville/master
add argument_matchers features for explicit arguments, anything, any_args, and no_args
d8c4829
@dchelimsky dchelimsky nav for new features 1018eaf
@dchelimsky dchelimsky this has been moved to features/argument_matchers 3e1bbba
@dchelimsky dchelimsky bump to 2.7.0.rc1 3934ef4
@dchelimsky dchelimsky bump relish version to ~> 0.5.0 1c128a3
@dchelimsky dchelimsky dev: fix relish task 2f7706a
@dchelimsky dchelimsky fix link to full changelog 53b7427
Commits on Oct 12, 2011
@dchelimsky dchelimsky Raise a helpful message on any_instance.stub! (use stub instead)
- Closes #57.
c5466fc
@dchelimsky dchelimsky rdoc tweaks f0f9d4a
Commits on Oct 15, 2011
@kaiwren kaiwren Bug fix: any_instance now properly restores private methods
- Closes #86.
- Fixes #85.
5b862e6
@dchelimsky dchelimsky Changlog for #85 and #86. b3832f5
Commits on Oct 16, 2011
@dchelimsky dchelimsky cleanup and add some rdoc f646743
@dchelimsky dchelimsky update changelog for 2.7.0 release 6a7c51a
@dchelimsky dchelimsky bump version to 2.7.0 19b5646
@dchelimsky dchelimsky fix formatting problems in the changelog fdd3602
Commits on Oct 25, 2011
@justinko justinko Set default order to :random c3728d5
Commits on Oct 29, 2011
@mvz mvz Turn on warnings for spec task. 96640b0
@mvz mvz Fix 'assigned but unused variable' warnings in lib. 63fb2bc
@mvz mvz Fix 'assigned but unused variable' warnings in spec. c3c8a97
Commits on Oct 30, 2011
@dchelimsky dchelimsky Merge pull request #88 from mvz/no-warnings
Fix warnings
a02c59b
@dchelimsky dchelimsky dev: fix ruby-debug version (and deps) for 1.9.2 aabc5af
@dchelimsky dchelimsky changelog for #88 32f635f
@dchelimsky dchelimsky changelog tweaks 5244b17
Commits on Nov 06, 2011
@dchelimsky dchelimsky changelog 349f127
@dchelimsky dchelimsky bump to 2.8.0.rc1 7fa5ae6
Commits on Nov 09, 2011
@dchelimsky dchelimsky update License and/or authors in gemspec 6bcdd5c
@dchelimsky dchelimsky update email addy and homepage in gemspec 8dfe521
@dchelimsky dchelimsky only extend Object and Class once 7bd33e2
@dchelimsky dchelimsky move overview to Readme (where it belongs) c186d12
@dchelimsky dchelimsky eliminate warning aeaed20
@dchelimsky dchelimsky rdoc 7348985
@dchelimsky dchelimsky rename file to match module name 000b281
@dchelimsky dchelimsky more README 0a824d2
@dchelimsky dchelimsky fix changelog formatting 15199b8
Commits on Nov 25, 2011
@dchelimsky dchelimsky dev: hack the Gemfile to print instructions for ruby-debug-base19 and…
… linecache19 on ruby-1.9.3
bcbe4c6
@dchelimsky dchelimsky ci: don't warn about ruby-debug-base19 and linecache19 in ci 4273029
@dchelimsky dchelimsky dev: just use the latest rake dd109db
@dchelimsky dchelimsky doc: clean up .yardopts 01c11ee
@dchelimsky dchelimsky rdoc (and a rename or two) f4bd883
@dchelimsky dchelimsky gotta use _some_ rake though b6eb554
Commits on Nov 26, 2011
@dchelimsky dchelimsky dev: move dev-env gems to Gemfile-custom.sample a1baff8
@dchelimsky dchelimsky dev: store the sample, not the actual file 8f9b53d
@dchelimsky dchelimsky add DEV-README bb606af
@dchelimsky dchelimsky rdoc 6d93edd
Commits on Nov 27, 2011
@icambron icambron added ruby syntax highlighting for github a13dd64
@icambron icambron removed extra indentation in readme f86db3e
@dchelimsky dchelimsky Begin to refactor any_instance framework a bit as I wrap my head arou…
…nd it.
c104626
@dchelimsky dchelimsky silly cut/paste 1f3a352
@dchelimsky dchelimsky rdoc: test to see if github markup works as expected on rdoc.info 75fb857
@dchelimsky dchelimsky restore rdoc examples to standard markdown indentation until rdoc.inf…
…o supports git-flavored markup
dc295d2
Commits on Nov 29, 2011
@dchelimsky dchelimsky rdoc: AnyInstance::Chain DSL methods (thanks to Loren Segal for the y…
…ard tip)
59b73a8
@dchelimsky dchelimsky rdoc: add @see tags to AnyInstance::Chain methods b147e12
@dchelimsky dchelimsky more rdoc - trying out GFM on rdoc.info again 8f8fa3d
@dchelimsky dchelimsky no go on GFM for now de90662
@dchelimsky dchelimsky rdoc: maybe GFM works for .md files but not .rb files? 2bc29ca
@dchelimsky dchelimsky rdoc: undo GFM again 64b1483
@dchelimsky dchelimsky rdoc: some message expectation methods db61d60
@dchelimsky dchelimsky rdoc: remaining MessageExpectation methods 382fadb
@dchelimsky dchelimsky rdoc: add GFM test file (temp) dc8aba1
@dchelimsky dchelimsky need to include it in .yardopts, silly 39e227a
@dchelimsky dchelimsky clean up ArgumentMatchers b701d0f
@dchelimsky dchelimsky rdoc 45b6314
Commits on Nov 30, 2011
@dchelimsky dchelimsky rdoc - mostly hiding noise end-users don't care about 8ddbed7
@dchelimsky dchelimsky Merge pull request #89 from icambron/doc_changes
Use github-flavored-markdown for the README
3e89723
@dchelimsky dchelimsky don't need the GFM test any longer (it works now) c758d40
@dchelimsky dchelimsky rdoc: legal ruby in the comments actually works 50a4980
Commits on Dec 02, 2011
@dchelimsky dchelimsky add license to gemspec (and consequently the gem) 8e60983
Commits on Dec 04, 2011
@dchelimsky dchelimsky don't need redcarpet in the .yardopts since yard 0.7.4 5424a5c
Commits on Dec 05, 2011
@dchelimsky dchelimsky fix ruby parsing error in rdoc 26d3ffb
Commits on Dec 06, 2011
@pat pat Throwing with parameters
This is written so I can stub out Warden's behaviour appropriately - and I realise it's simple, but perhaps this is all that's needed. It certainly works for me.
aca77b2
@pat pat Following Kernel.throw's method signature
First argument is the symbol, second is the optional object that is returned.
d0c805e
@dchelimsky dchelimsky Merge pull request #90 from freelancing-god/throw-with-params
Throwing with parameters
c03c8d6
@dchelimsky dchelimsky align the examples for and_throw
- #90
8c6ffba
@dchelimsky dchelimsky fix warnings
- #90
4543082
Commits on Dec 20, 2011
@dchelimsky dchelimsky prep for 2.8.0.rc2 12506e1
Commits on Jan 05, 2012
@dchelimsky dchelimsky bump to 2.8.0 ea8cc1f
Commits on Jan 26, 2012
@justinko justinko Allow a `as_null_object` to be passed to `with`. Closes #98 de283b3
Commits on Jan 29, 2012
@coreyhaines coreyhaines Better message if #and_raise exception type requires constructor params 6fe4168
@coreyhaines coreyhaines Make name of sample exception a bit more clear as to its purpose b92f2cc
Commits on Jan 30, 2012
@justinko justinko Don't hit `__mock_proxy` unless you need to. This avoids a Rubby 1.8.…
…7 Proc equality bug: https://gist.github.com/1702877

This commit fixes the build for 1.8.7
9a201da
@dchelimsky dchelimsky Merge pull request #100 from coreyhaines/and_raise_big_arity_construc…
…tor_better_message

Better message if #and_raise exception type requires constructor params

- Fixes #99.
7ce8c6f
@dchelimsky dchelimsky More detailed error message when and_raise gets a class whose constru…
…ctor requires 1 or more args.

- #99, #100.
1f28dcd
@dchelimsky dchelimsky clean up some specs 5897343
Commits on Feb 02, 2012
@nruth nruth Use the null object, rather than re-assigning another double 9a095fb
Commits on Feb 03, 2012
@dchelimsky dchelimsky Merge pull request #104 from nruth/patch-1
Use the null object, rather than re-assigning another double
f999770
Commits on Feb 04, 2012
@aubreyrhodes aubreyrhodes Fixing blocks not being passed to stubs f0c7643
Commits on Feb 05, 2012
@dchelimsky dchelimsky Merge pull request #105 from aubreyrhodes/fix_stub_not_passing_block
Fixing blocks not being passed to stubs
42b3ef7
@dchelimsky dchelimsky Simplify some examples.
- #105.
0b4eab2
@dchelimsky dchelimsky Changelog for #105 6743cd7
Commits on Feb 08, 2012
@preethiramdev preethiramdev Making ordering common to all object per spec 221594b
@preethiramdev preethiramdev Adding spec to test the ordering is reset each time c59981d
@dchelimsky dchelimsky Merge pull request #106 from preethiramdev/issue-101
Support order constraints across objects
b4e6746
@dchelimsky dchelimsky Changelog for #101, #106 35f67e6
@dchelimsky dchelimsky dev: restore random ordering 0ce8c71
@dchelimsky dchelimsky clean up order constraint spec 3f94b50
@dchelimsky dchelimsky clear expectation_ordering rather than creating a new one for each ex…
…ample
c8b9948
@dchelimsky dchelimsky some mocks are not mocks 17c259e
Commits on Feb 09, 2012
@dchelimsky dchelimsky refactoring: those syms are messages dce2d2c
Commits on Feb 11, 2012
@justinko justinko No need to require yaml. 56a5ccd
Commits on Feb 17, 2012
@preethiramdev preethiramdev Initializing message expectation args to match any args 917dca2
@dchelimsky dchelimsky Merge pull request #109 from c42engineering/expectation_args
Initialize child message expectation args to match any args (See #103)
408a09c
@dchelimsky dchelimsky Changelog for #109 59c41e8
@dchelimsky dchelimsky minor refactoring: rename args_expectation to argument_expectation (i…
…nternal)
4c32db1
@dchelimsky dchelimsky clean up and enhance spec for mixing stubs and expectations 117f2cb
Commits on Feb 20, 2012
@preethiramdev preethiramdev should receiving stubbed atleast_once removes matching stub 235c8cc
Commits on Feb 24, 2012
@preethiramdev preethiramdev Fixing method called on nil warning 251bf2a
@dchelimsky dchelimsky Merge pull request #110 from c42engineering/issue-103
should_receive(:x).at_least_once clears any stubs on :x

- Fixes #103
6e23ca9
@dchelimsky dchelimsky Revert "Merge pull request #110 from c42engineering/issue-103"
Turns out this change is significantly backward-incompatible that we're
going to have to wait for rspec-mocks-3 to release it (or similar)

This reverts commit 6e23ca9, reversing
changes made to 117f2cb.
3bb19cb
Commits on Feb 27, 2012
@dchelimsky dchelimsky check if @_null_object is defined to avoid warning when it is not 185d47e
Commits on Mar 05, 2012
@nathanl nathanl Explained why `before(:all)` won't work for stubs. 0815a4a
Commits on Mar 12, 2012
@dchelimsky dchelimsky bump to 2.9.0.rc1 c83ae1c
@dchelimsky dchelimsky restore some gems to Gemfile e7d92e4
@dchelimsky dchelimsky ci: don't need to exclude development env any longer 377c32b
@dchelimsky dchelimsky align gemspec with other rspec libs 21d21ce
@dchelimsky dchelimsky bump to 2.9.0.rc2 06ce1ab
Commits on Mar 17, 2012
@dchelimsky dchelimsky bump to 2.9.0 e62d381
@dchelimsky dchelimsky dev: add a script to download ruby-debug-base19-0.11.26.gem and linec…
…ache19-0.5.13.gem to a local cache

[ci skip]
eb5da85
@dchelimsky dchelimsky only one ref to yard please c8a5ef5
Commits on Mar 21, 2012
@myronmarston myronmarston Extract mock logic into TestDouble module.
This allows objects to be treated as a pure test double without needing to subclass RSpec::Mocks::Mock.

Closes #117.
af3f296
Commits on Mar 28, 2012
@maeve maeve and_raise should support intentionally raising an ArgumentError 38ddf48
@myronmarston myronmarston Merge pull request #121 from maeve/fix-raising-argumenterrors
and_raise should support intentionally raising an ArgumentError
2478a16
Commits on Apr 16, 2012
@dchelimsky dchelimsky fail fast when an exactly or at_most expectation is exceeded fb9c76c
@dchelimsky dchelimsky minor refactoring for clarity 381c7c8
@dchelimsky dchelimsky a little more refactoring 764680c
@dchelimsky dchelimsky Refactoring: collapse concepts of method_block and return_block into
implementation.
f4f4ec3
Commits on Apr 17, 2012
@dchelimsky dchelimsky Make the fact that you can set message expectations on class objects
more obvious.

- Closes #125.

[ci skip]
155cef3
Commits on Apr 18, 2012
@CoryFoy CoryFoy Correct spelling of "Responses" 40a2a0f
@justinko justinko Merge pull request #126 from CoryFoy/patch-1
Correct spelling of "Responses"
668ad3d
Commits on Apr 21, 2012
@dchelimsky dchelimsky one line on one line fa13314
Commits on Apr 22, 2012
@dchelimsky dchelimsky shorten file extension 707f515
@dchelimsky dchelimsky align config files across rspec projects 4b47e54
@dchelimsky dchelimsky dev: align Gemfiles across rspec projects b4204fb
Commits on May 01, 2012
@dchelimsky dchelimsky update yard to 0.8 1e4c1e6
Commits on May 04, 2012
@dchelimsky dchelimsky refactor subject out of one spec 604dc5d
@dchelimsky dchelimsky update changelog for 2.10 release 4862911
@dchelimsky dchelimsky bump to 2.10.0 6732d62
@dchelimsky dchelimsky rename some things in a spec d4b983c
@dchelimsky dchelimsky Fixed bug where at_least(0) failed when message was received
- Fixes #132
6b188a8
@dchelimsky dchelimsky Make sure at_least(0) passes even when never called
- Fixes #132 again
73be258
Commits on May 05, 2012
@dchelimsky dchelimsky dev: config for :focus 877dfa6
@dchelimsky dchelimsky dev: refactor a spec 2e9d990
@dchelimsky dchelimsky should_not_receive ignores and_return
- See #132
70aaf1c
@dchelimsky dchelimsky bump to 2.10.1 112b430
Commits on May 09, 2012
@dchelimsky dchelimsky Expose ArgumentListMatcher as a formal API
- supports use by 3rd party mock frameworks like Surrogate.
5d3e1dc
Commits on May 13, 2012
@dchelimsky dchelimsky spec refactoring: move shared examples to the one spec using them. eb12635
@dchelimsky dchelimsky dev: use :unless filter instead of a global exclusion filter e03d66b
@dchelimsky dchelimsky dev: rename context 671076d
@dchelimsky dchelimsky spec refactoring: rename subject with intention revealing name
- even though 'object' is no less generic than 'subject', it makes it
  more clear that we're talking about a generic object.
eebee30
Commits on May 17, 2012
@dchelimsky dchelimsky Merge pull request #115 from nathanl/master
Explained why `before(:all)` won't work for stubs.
2a69b71
@myronmarston myronmarston Fix a regression.
When doing something like:

  double.stub(:foo).and_return(a, b)
  double.should_receive(:foo).once { a }
  double.foo

...it used to work, but in 2.10 it raises a NoMethodError (#size).
b44db2a
Commits on May 19, 2012
@kaiwren kaiwren Replicating Issue #120 7d85604
Commits on May 20, 2012
@kaiwren kaiwren Issue #120: Under any_instance, modify #dup to remove the mock proxy 5de6500
Commits on May 22, 2012
@myronmarston myronmarston Update changelog. a11fcdc
Commits on May 23, 2012
@justinko justinko Merge pull request #138 from c42engineering/issue_120
Issue #120
bab88c7
@justinko justinko changelog [ci skip] c64c605
@justinko justinko No need for an "issue specific" spec file. aca2b40
@kaiwren kaiwren Replicated Issue #124 419b64a
@aakashd aakashd issue #124: adding support for any_instance.should_not_receive 6e858e4
@dchelimsky dchelimsky Merge pull request #139 from c42engineering/issue124
add support for any_instance.should_not_receive
b38da74
Commits on May 24, 2012
@dchelimsky dchelimsky `should_receive(x).at_least(:once).and_return(y)` always returns y ev…
…en if x is already stubbed

    widget.stub(:count => 1)
    widget.should_receive(:count).at_least(:once).and_return(2)
    widget.count #=> 2
    widget.count #=> 2

If there is no return value set, it will fall back to the stub value:

    widget.stub(:count => 1)
    widget.should_receive(:count).at_least(:once)
    widget.count #=> 1
    widget.count #=> 1

- Fixes #142
dbe44e6
Commits on May 25, 2012
@brynary brynary Add Code Climate badge 8879661
@dchelimsky dchelimsky Merge pull request #143 from brynary/codeclimate-badge
Add Code Climate badge
ea1053b
Commits on May 31, 2012
@pje pje `:%s/ducktype/duck_type/g` 5edfe94
@dchelimsky dchelimsky Merge pull request #145 from pjellis/patch-1
[typo] underscore-ize 'ducktype' in README.md
4b70b45
Commits on Jun 02, 2012
@myronmarston myronmarston First pass at implementing constant stubbing.
This is almost copied verbatim from rspec-fire.

For #144.
9c44b28
@myronmarston myronmarston Always restore original constants.
The original logic from rspec-fire did not restore original constants
if the user changed them in the example after stubbing them, but after
talking it over with @dchelimsky and @garyberhnardt we've decided to
be consistent and always restore them.

For #144.
9a7c90d
@myronmarston myronmarston Remove the bang from our #stub! methods.
I'm not really sure why I used them when I wrote this in rspec-fire;
given there were not corresponding bang-less methods, it didn't
really make sense.

For #144.
2b4fad7
@myronmarston myronmarston Fix a constant stubbing edge case.
stub_const("A::B::C", whatever) cannot work if A::B is defined
but A::B is not a module.

For #144.
d1669a8
@myronmarston myronmarston Remove unused method.
For #144.
f77357e
@myronmarston myronmarston Add API docs for new constant stubbing code.
For #144.
ecfb7f6
@myronmarston myronmarston Add cukes for new stub_const feature.
Closes #144.
e31f4a4
Commits on Jun 03, 2012
@myronmarston myronmarston Fix typo pointed out by @justinko. 7ab3d61
@myronmarston myronmarston Replace duplicated README content with a link.
As per the conversation with @justinko and @dchelimsky:
#146 (comment)

Note that this link is broken for now because this hasn't
yet been merged into master. But I figured it was better
not to use a working link just to the branch since that
branch will likely be deleted in the near future.
0bd5850
@myronmarston myronmarston Refactor constant stubbers a bit.
This is based on @justinko's suggestions:
#146 (comment)
2cbf9c4
Commits on Jun 04, 2012
@myronmarston myronmarston Remove unused helper method. 22c2049
Neha Kumari Issue #123: Improved error message when user forgets to stub a method…
… with default behavior.
409955f
@dchelimsky dchelimsky Merge pull request #147 from c42engineering/issue123
Issue #123: Improved error message when user forgets to stub a method with a default.
1ebc698
@dchelimsky dchelimsky Use the improved message from the prev commit for stubs, not message …
…expectations.

- Closes #147, #123.
49ce496
Commits on Jun 07, 2012
@myronmarston myronmarston Return stubbed value rather than original value from stub_const.
This allows chaining:

  stub_const("Foo", double).stub(:foo)
f94e6b2
@myronmarston myronmarston Add `Constant.original` API to query rspec-mocks about stubbed consta…
…nts.

This needs to be documented, but I want to get feedback from others before spending effort on that.
211743d
Commits on Jun 08, 2012
@myronmarston myronmarston Make Constant.unstubbed private since it's an internal API. fd595a8
@myronmarston myronmarston Refactor away the use of #its.
#its is going away in rspec-core at some future point, so we shouldn't use it here.
722529e
Commits on Jun 11, 2012
@myronmarston myronmarston Add API docs for Constant.original query API. 3b63c51
@myronmarston myronmarston Merge pull request #146 from rspec/constant-stubbing f5c63c3
@myronmarston myronmarston Mention new stub_const feature in changelog. f04d527
Commits on Jun 15, 2012
@dchelimsky dchelimsky refactor: rename ExpectationChain to PositiveExpectationChain
Also extract base ExpectationChain.
980b98f
Commits on Jun 18, 2012
@myronmarston myronmarston Prevent infinite loop when interpolating a null double as an integer …
…into a string.

Closes #154.
f8cae14
@myronmarston myronmarston Weird, 1.9.2 acts differently here than 1.9.3 and 1.8.7. b96dd92
Commits on Jun 24, 2012
@myronmarston myronmarston Fix `should_receive` to preserve null object behavior.
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.
a5f296e
Commits on Jun 25, 2012
@myronmarston myronmarston Cleanup whitespace.
(Actually, I'm mostly doing this just to trigger a travis build. A
recent change in rspec-expectations[1] broke the rspec-mocks
travis build, and now that it's fixed[2], 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).

[1] rspec/rspec-expectations@4024344#commitcomment-1496381
[2] rspec/rspec-expectations@a3e2839
28b284d
Commits on Jun 27, 2012
@amarshall amarshall Raise RuntimeError instead by default in and_raise to match Ruby default dc5e1a7
@myronmarston myronmarston Merge pull request #156 from amarshall/master
Raise RuntimeError instead of Exception by default in and_raise to match Ruby's default
c3539b9
@myronmarston myronmarston Update changelog. aa179ed
Commits on Jul 07, 2012
@dchelimsky dchelimsky bump to 2.11.0 e6bba62
@dchelimsky dchelimsky improve automation for publishing to relishapp.com b35b5b4
Commits on Jul 09, 2012
@myronmarston myronmarston Fix edge case bug exposed w/ `should_receive` on a null object w/ a p…
…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`.
26f6476
Commits on Jul 10, 2012
@myronmarston myronmarston 2.11.1 release. 24090f8