Skip to content
This repository
  • 73 commits
  • 47 files changed
  • 0 comments
  • 9 contributors
Jan 26, 2012
Justin Ko justinko Allow a `as_null_object` to be passed to `with`. Closes #98 de283b3
Jan 29, 2012
Corey Haines coreyhaines Better message if #and_raise exception type requires constructor params 6fe4168
Corey Haines coreyhaines Make name of sample exception a bit more clear as to its purpose b92f2cc
Justin Ko 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
Jan 30, 2012
David Chelimsky 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
David Chelimsky dchelimsky More detailed error message when and_raise gets a class whose constru…
…ctor requires 1 or more args.

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

- Fixes #103
6e23ca9
David Chelimsky 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
Feb 27, 2012
David Chelimsky dchelimsky check if @_null_object is defined to avoid warning when it is not 185d47e
Mar 11, 2012
David Chelimsky dchelimsky bump to 2.9.0.rc1 c83ae1c
David Chelimsky dchelimsky restore some gems to Gemfile e7d92e4
David Chelimsky dchelimsky ci: don't need to exclude development env any longer 377c32b
Mar 12, 2012
David Chelimsky dchelimsky align gemspec with other rspec libs 21d21ce
David Chelimsky dchelimsky bump to 2.9.0.rc2 06ce1ab
Mar 17, 2012
David Chelimsky dchelimsky bump to 2.9.0 e62d381
David Chelimsky 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
David Chelimsky dchelimsky only one ref to yard please c8a5ef5
Mar 20, 2012
Myron Marston 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
Mar 27, 2012
Maeve Revels maeve and_raise should support intentionally raising an ArgumentError 38ddf48
Myron Marston myronmarston Merge pull request #121 from maeve/fix-raising-argumenterrors
and_raise should support intentionally raising an ArgumentError
2478a16
Apr 15, 2012
David Chelimsky dchelimsky fail fast when an exactly or at_most expectation is exceeded fb9c76c
David Chelimsky dchelimsky minor refactoring for clarity 381c7c8
David Chelimsky dchelimsky a little more refactoring 764680c
David Chelimsky dchelimsky Refactoring: collapse concepts of method_block and return_block into
implementation.
f4f4ec3
Apr 17, 2012
David Chelimsky dchelimsky Make the fact that you can set message expectations on class objects
more obvious.

- Closes #125.

[ci skip]
155cef3
Cory Foy CoryFoy Correct spelling of "Responses" 40a2a0f
Apr 18, 2012
Justin Ko justinko Merge pull request #126 from CoryFoy/patch-1
Correct spelling of "Responses"
668ad3d
Apr 21, 2012
David Chelimsky dchelimsky one line on one line fa13314
Apr 22, 2012
David Chelimsky dchelimsky shorten file extension 707f515
David Chelimsky dchelimsky align config files across rspec projects 4b47e54
David Chelimsky dchelimsky dev: align Gemfiles across rspec projects b4204fb
Apr 30, 2012
David Chelimsky dchelimsky update yard to 0.8 1e4c1e6
May 03, 2012
David Chelimsky dchelimsky refactor subject out of one spec 604dc5d
David Chelimsky dchelimsky update changelog for 2.10 release 4862911
David Chelimsky dchelimsky bump to 2.10.0 6732d62
May 04, 2012
David Chelimsky dchelimsky rename some things in a spec d4b983c
David Chelimsky dchelimsky Fixed bug where at_least(0) failed when message was received
- Fixes #132
6b188a8
David Chelimsky dchelimsky Make sure at_least(0) passes even when never called
- Fixes #132 again
73be258
May 05, 2012
David Chelimsky dchelimsky dev: config for :focus 877dfa6
David Chelimsky dchelimsky dev: refactor a spec 2e9d990
David Chelimsky dchelimsky should_not_receive ignores and_return
- See #132
70aaf1c
David Chelimsky dchelimsky bump to 2.10.1 112b430
May 08, 2012
David Chelimsky dchelimsky Expose ArgumentListMatcher as a formal API
- supports use by 3rd party mock frameworks like Surrogate.
5d3e1dc
May 13, 2012
David Chelimsky dchelimsky spec refactoring: move shared examples to the one spec using them. eb12635
David Chelimsky dchelimsky dev: use :unless filter instead of a global exclusion filter e03d66b
David Chelimsky dchelimsky dev: rename context 671076d
David Chelimsky 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
May 17, 2012
Myron Marston 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).
b574a98
David Chelimsky dchelimsky use a method on the child instead 4da3abb