Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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 Aug 22, 2014
@myronmarston myronmarston Merge pull request #765 from rspec/update-travis-build-scripts-2014-0…
…8-22-for-master

Updates from rspec-dev (2014-08-22)
19f023d
Commits on Aug 23, 2014
@igas igas Fix indentation in readme 8ba17ed
@JonRowe JonRowe Merge pull request #766 from igas/patch-1
Fix indentation in readme
c93dd6b
@JonRowe JonRowe create and_wrap_original
59915d5
@JonRowe JonRowe cuke for wrapping original implementation a05ebbf
Commits on Aug 24, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev) c6b4829
@myronmarston myronmarston Merge pull request #767 from rspec/update-travis-build-scripts-2014-0…
…8-23-for-master

Updates from rspec-dev (2014-08-23)
1101ab3
@JonRowe JonRowe Changelog for #762
[skip ci]
c0a1b61
@JonRowe JonRowe Merge pull request #762 from rspec/and_wrap_original
Implement and_wrap_original
fd9cd38
Commits on Aug 27, 2014
@myronmarston myronmarston Disable the rspec-core DSL in the global scope. fab3227
@myronmarston myronmarston Merge pull request #768 from rspec/disable-global-dsl
Disable the rspec-core DSL in the global scope.
3f81146
@myronmarston myronmarston Fix ruby warning. 2e4bf38
@JonRowe JonRowe Merge pull request #769 from rspec/fix-load-time-spec-warnings
Fix ruby warning.
a5de965
Commits on Aug 29, 2014
@myronmarston myronmarston Setup rubocop.
Closes #702.
a1b93d0
@myronmarston myronmarston Merge pull request #770 from rspec/setup-rubocop
Setup rubocop.
a32ecea
Commits on Sep 01, 2014
@eugeneius eugeneius Fix prepended module detection on Ruby 2.0
Ruby's behaviour when prepending a module to a singleton class differs
between 2.0 and 2.1. I wrote a test case to illustrate the differences:
https://gist.github.com/eugeneius/884873965f90092fc50c

On Ruby 2.1, the singleton class always appears in its own ancestors
chain. Prepended modules come before it, and included modules after it.
This is consistent with how the ancestors chain works for normal classes
and modules.

On Ruby 2.0, the singleton class only appears in its own ancestors chain
if a module has been prepended to it. This means we can't find the
prepended modules by just iterating over its ancestors until some
stopping condition. Right now included modules are being incorrectly
classified as prepended modules on Ruby 2.0 - I've included a spec here
capturing the bug that fails on master.

If the singleton class is not in its own ancestors chain, we know there
aren't any prepended modules, so we don't need to check for them. The
existing code works in all other cases.
364d7a7
@JonRowe JonRowe Merge pull request #771 from eugeneius/fix_prepended_module_detection
Fix prepended module detection on Ruby 2.0
c3c44e0
@JonRowe JonRowe changelog for #771
[skip ci]
c783627
Commits on Sep 02, 2014
@JonRowe JonRowe spec out #745
(This has since been solved by #771).
689c133
@myronmarston myronmarston Refactor `prepended_modules_of_singleton_class`.
The `take_while` implementation was a bit obtuse.

It is simpler to just find the index of the singleton
class and then just return all ancestors before it. This
ensures that only modules which are prepended onto the
specific singleton class we are dealing with (and not the
singleton class of a superclass...) are considered, which was
the root of the problem causing #745.
536b66b
@JonRowe JonRowe Merge pull request #773 from rspec/issue-771-followup
Issue 771 followup
f4293ba
Commits on Sep 05, 2014
@myronmarston myronmarston 3.1.0 release. 06fbd3d
@myronmarston myronmarston Bump version to 3.2.0.pre. 9e261ad
Commits on Sep 15, 2014
@afn afn fixes #781 3db6ca7
@JonRowe JonRowe Merge pull request #782 from amitree/master
Stubbing a method on any_instance_of(SomeModule) gives spurious error about prepended modules
63952ff
@JonRowe JonRowe changelog for #781
[skip ci]
94dda94
Commits on Sep 18, 2014
@myronmarston myronmarston Fix regexp warnings on 1.8.7.
./spec/rspec/mocks/argument_matchers_spec.rb:277: warning: regexp has invalid interval
./spec/rspec/mocks/argument_matchers_spec.rb:277: warning: regexp has `}' without escape
./spec/rspec/mocks/argument_matchers_spec.rb:284: warning: regexp has invalid interval
./spec/rspec/mocks/argument_matchers_spec.rb:284: warning: regexp has `}' without escape
c4c85cc
@myronmarston myronmarston Merge pull request #785 from rspec/fix-regexp-warnings-on-1.8.7
Fix regexp warnings on 1.8.7.
0f2fd7c
@myronmarston myronmarston Skip spec warnings spec on 1.9.2.
We load psych and syck and they trigger warnings.
26f27b3
@myronmarston myronmarston Forwardport 3.1.1 release notes.
[ci skip]
7db36a6
Commits on Sep 21, 2014
@JonRowe JonRowe raise an error when attempting to use allow(...).to have_received 01cf92e
Commits on Sep 22, 2014
@JonRowe JonRowe tweak ws
[skip ci]
5b3d6ff
@JonRowe JonRowe changelog for #788
[skip ci]
085d79a
@JonRowe JonRowe Merge pull request #788 from rspec/error_for_allow_have_received
raise an error when attempting to use allow(...).to have_received
bc221e4
Commits on Sep 24, 2014
@dblock dblock Explicitly call out args passed into any_instance stubs. d3e6a4e
@myronmarston myronmarston Merge pull request #789 from dblock/explicitly-list-args
Explicitly call out args passed into any_instance stubs.
8f0a242
Commits on Sep 26, 2014
@JonRowe JonRowe Updated travis build scripts (from rspec-dev) f873361
@myronmarston myronmarston Merge pull request #791 from rspec/update-travis-build-scripts-2014-0…
…9-26-for-master

Updates from rspec-dev (2014-09-26)
5868de1
@myronmarston myronmarston Forwardport 3.1.2 release notes. 06a490e
Commits on Sep 28, 2014
@myronmarston myronmarston Reorganize verified double specs.
The single `verifying_double_spec.rb` has gotten unwieldy and hard
to work with because it's so large. It's easier to work with smaller
spec files.

- Extract doubled class definitions into a support file.
- Move the method visibility specs into their own file.
- Move class/object/instance double specs into their own files.
- Move general verifying double construction specs into a separate file.
20a3ae3
@myronmarston myronmarston Make doc strings a bit more accurate.
683f911
@myronmarston myronmarston Rewrite verifying message expectation specs.
- Move them under `verified_doubles` sub directory.
- Use more of an integration style rather than a mock-based
  unit style.
- This is easier to work with; the other specs surprised
  me in that I had to explicitly expect the error generator
  not to receive a message in order to write a spec for the
  "allowed" case (since it was `as_null_object` it would not
  fail automatically). This surprised me when trying to add
  some new specs here.
- This also fixes the spec for the `any_args` case. The old spec
  did not fail when I temporarily removed the special `any_args`
  handling, because the expected method for that example accepts
  1 argument, and without the `any_args` special handling, it would
  naturally be treated as a single argument.
9ed0fe8
@myronmarston myronmarston Merge pull request #792 from rspec/reorganize-verifying-double-specs
Reorganize verifying double specs
7ef292c
@myronmarston myronmarston Improve wording of docstring. 59fbfd5
Commits on Oct 01, 2014
@JonRowe JonRowe Correct error with have_received counts
* add triangulation example for have_received error
* rescue RSpec::Mocks::MockExpectationError when replaying expectations,
  we need to count them all.
edb39a8
@JonRowe JonRowe Don't raise an expectation when counting in have_received 4197003
@JonRowe JonRowe extend rubocop class definition 79d8ad6
Commits on Oct 02, 2014
@JonRowe JonRowe changelog for #793
[skip ci]
b3f49e8
@JonRowe JonRowe Merge pull request #793 from rspec/fix_issue_with_have_received_matcher
Wrong error message generated by have_received matcher when method was called 2 or more times than expected
9825dd5
@JonRowe JonRowe fixup changelog after #793
[skip ci]
fe697fc
Commits on Oct 03, 2014
@piotrj piotrj Add receive_messages to README
It took some digging to figure out that this method is available, so I guess it's good idea to have it in README.
5e6d687
@myronmarston myronmarston Merge pull request #798 from piotrj/patch-1
Add receive_messages to README
c31e256
Commits on Oct 04, 2014
@myronmarston myronmarston Treat `any_args` as an arg splat.
This allows it to match an arbitrary number of
arguments at any point in an arg list.

Closes #707.
944750b
@myronmarston myronmarston Convert stateless arg matchers to singletons.
This saves on memory (fewer objects to GC!).
903ebe5
@myronmarston myronmarston Provide a clear failure when invalid args are passed to `with`.
80f6f62
@myronmarston myronmarston Fix `with` verified double verification to work with new `any_args` s…
…emantics.
a6eff99
@myronmarston myronmarston Update `any_args` docs to explain splat semantics. c3c94fa
Commits on Oct 05, 2014
@myronmarston myronmarston Simplify wording based on @xaviershay’s suggestion. 1cbb1c6
@myronmarston myronmarston Merge pull request #786 from rspec/any-args-splat
Treat `any_args` as an arg splat.
4d87a45
@JonRowe JonRowe explictly deny any_instance_of with have_received dcfb9bb
@JonRowe JonRowe changelog for #799
[skip ci]
9664eaf
@JonRowe JonRowe Merge pull request #799 from rspec/explicitly_deny_any_instance_have_…
…received

Improve error message when using any_instance with have_received.
926f94b
Commits on Oct 06, 2014
@myronmarston myronmarston Fix changelog.
Somehow the changlog entries from #786 wound up
under the wrong section.

[ci skip]
3bd71e8
Commits on Oct 09, 2014
@myronmarston myronmarston Fix verified double `with` verification for method stubs. d8a7c28
@myronmarston myronmarston Merge pull request #790 from rspec/verified-doubles-with-bug
Fix `with` bug for verifying doubles.
f94007a
@myronmarston myronmarston Forwardport 3.1.3 release notes.
[ci skip]
883d2a6
Commits on Oct 11, 2014
@samphippen samphippen Use is_a_matcher? in arg_has_valid_description
This fixes #685. It means that we only print descriptions in errors for
matcher objects and not for user objects.
c55d11b
Commits on Oct 19, 2014
@samphippen samphippen Implement diffing between args for mock expectations.
139473d
@samphippen samphippen Add a changelog entry for #751 29ee51d
Commits on Oct 20, 2014
@myronmarston myronmarston Merge pull request #751 from rspec/args-diffing
Use the differ to print diffs when args are mismatched between expectations and calls
3da6cdc
Commits on Oct 21, 2014
@samphippen samphippen Trim line length in error generator cbc739a
Commits on Oct 23, 2014
@samphippen samphippen Merge pull request #802 from rspec/samphippen/trim-error-generator-lines
Trim line length in error generator
4496242
Commits on Oct 24, 2014
@andyw8 andyw8 Fix minor typo (veryifing -> verifying)
c18a943
@myronmarston myronmarston Merge pull request #804 from andyw8/patch-1
Fix minor typo (veryifing -> verifying)
9e9837b
Commits on Oct 27, 2014
@myronmarston myronmarston Split public from private interface of MessageExpectation.
These things were combined all together, which made
it more difficult to tell which was which. Also,
`MessageExpectation` was labeled `@private`, which
prevented these methods from showing up on rubydoc.info.
6ff6beb
Commits on Oct 29, 2014
@myronmarston myronmarston Improve MessageExpectation docs.
- Group the methods.
- Specify return values.
- Remove blank lines that were rendering in
  example output.
5caf5bc
@myronmarston myronmarston Merge pull request #805 from rspec/doc-improvements
Doc improvements
ad64b59
Commits on Oct 30, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
77c156e
Commits on Oct 31, 2014
@myronmarston myronmarston Merge pull request #807 from rspec/update-travis-build-scripts-2014-1…
…0-30-for-master

Updates from rspec-dev (2014-10-30)
5254af2
Commits on Nov 12, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
6a7e960
@myronmarston myronmarston Merge pull request #813 from rspec/update-travis-build-scripts-2014-1…
…1-12-for-master

Updates from rspec-dev (2014-11-12)
4a0271d
@cupakromer cupakromer Updated travis build scripts (from rspec-dev)
58e2300
@JonRowe JonRowe Merge pull request #815 from rspec/update-travis-build-scripts-2014-1…
…1-12-for-master

Updates from rspec-dev (2014-11-12)
7a3b9c8
Commits on Nov 13, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
2c97b39
Commits on Nov 14, 2014
@myronmarston myronmarston Merge pull request #816 from rspec/update-travis-build-scripts-2014-1…
…1-13-for-master

Updates from rspec-dev (2014-11-13)
d1d9b29
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
4521262
@myronmarston myronmarston Merge pull request #817 from rspec/update-travis-build-scripts-2014-1…
…1-13-for-master

Updates from rspec-dev (2014-11-13)
e504e53
Commits on Nov 15, 2014
@JonRowe JonRowe Updated travis build scripts (from rspec-dev)
0879f1c
@JonRowe JonRowe Merge pull request #818 from rspec/update-travis-build-scripts-2014-1…
…1-15-for-master

Updates from rspec-dev (2014-11-15)
d6a89d3
Commits on Nov 21, 2014
@xaviershay xaviershay Remove spy scenario that is wrong level of detail for relish docs.
Behaviour is already covered by specs.
9f0b16a
@JonRowe JonRowe Merge pull request #821 from rspec/remove-spy-docs
Remove spy scenario that is wrong level of detail for relish docs.
32739eb
@myronmarston myronmarston Fix verified doubles when their const has already been stubbed.
Fixes #823.
288eea4
@myronmarston myronmarston Remove unnecessary captured block.
Capturing blocks isn’t free, and `yield` (which
we are already using) performs better than
capturing the block and using `block.call`.
8dae3e8
@myronmarston myronmarston Fix memoization to properly memoize nil.
ead0b5f
Commits on Nov 24, 2014
@JonRowe JonRowe Merge pull request #824 from rspec/fix-instance_double-when-class-con…
…st-stubbed

Fix verified doubles when their const has already been stubbed.
481844b
Commits on Nov 25, 2014
@JonRowe JonRowe Badges are crisper as svg
[skip ci]
cceb0e8
@JonRowe JonRowe Merge pull request #827 from rspec/badges_as_s
Switch readme badges to svg
efda49c
@myronmarston myronmarston Validate invocation args for verified null object doubles.
04e048f
@JonRowe JonRowe Merge pull request #829 from rspec/fix-null-object-verified-double-ar…
…g-verification

Validate invocation args for verified null object doubles.
5198c6d
@myronmarston myronmarston Add a `description` to `receive` matcher.
96fa880
@myronmarston myronmarston Add a description for `receive_message_chain` matcher.
c5848c5
@myronmarston myronmarston Add a description for `receive_messages` matcher.
5d8f534
@myronmarston myronmarston Add changelog entry.
626ecd5
@myronmarston myronmarston Merge pull request #828 from rspec/add-description-for-receive-matcher
Add description for matchers
b01f24d
Commits on Nov 28, 2014
@e2 e2 allow verifying doubles to use custom names in exceptions
76b84dd
@e2 e2 add class documentation about named verifying doubles
f951977
@e2 e2 mention naming verifying doubles in README
b5985e7
Commits on Nov 29, 2014
@myronmarston myronmarston Merge pull request #826 from e2/issue_825_named_verifying_doubles
allow naming verifying doubles just like ordinary doubles
45e2309
@myronmarston myronmarston Add changelog entry for #826.
[ci skip]
a454e6f
Commits on Nov 30, 2014
@myronmarston myronmarston Make `RSpec::Mocks::Constant.original(name)` handle invalid names gra…
…cefully.

Since this API returns an object that provides lots of details
about the constant (rather than just the original value), it's
not meant to raise errors when given constant names that can’t
resolve or are invalid -- instead the returned object indicates
that the provided name was invalid.
689878e
Commits on Dec 02, 2014
@JonRowe JonRowe Merge pull request #833 from rspec/fix-constant-original-for-bad-cons…
…t-names

Make `RSpec::Mocks::Constant.original(name)` handle invalid names gracefully.
8018b83
Commits on Dec 08, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
addf894
@JonRowe JonRowe Merge pull request #834 from rspec/update-travis-build-scripts-2014-1…
…2-08-for-master

Updates from rspec-dev (2014-12-08)
a60491d
@myronmarston myronmarston Revert "Updated travis build scripts (from rspec-dev)"
This reverts commit addf894.

[ci skip]
85bda90
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
3a9efe0
@myronmarston myronmarston Merge pull request #835 from rspec/update-travis-build-scripts-2014-1…
…2-08-for-master

Updates from rspec-dev (2014-12-08)
739d331
Commits on Dec 09, 2014
@myronmarston myronmarston Rework spec.
Before, it mutated the message expectation after it
had already been used. This was just done as a matter
of convenience in the spec, and wasn’t the core point
of it. (Honestly, I didn’t think about mutation-after-use
at the time).

Now, it still verifies that it can be overridden in
all the same ways, but doesn’t use the expectation
before overriding it. This preserves the important
behavior while opening the door for #778.
1ec04ed
@myronmarston myronmarston Merge pull request #836 from rspec/rework-mutation-spec
Rework spec.
f303b97
Commits on Dec 10, 2014
@samphippen samphippen Make the collection matchers composable with other matchers.
Fixes #801
786b262
@samphippen samphippen Changelog entry for #819
1acff37
@samphippen samphippen Merge pull request #819 from rspec/samphippen/compoasable_argument_ma…
…tchers

Improve composability of collection argument matchers
ea4c222
Commits on Dec 18, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
de9eef7
@myronmarston myronmarston Merge pull request #843 from rspec/update-travis-build-scripts-2014-1…
…2-17-for-master

Updates from rspec-dev (2014-12-17)
edef8c6
Commits on Dec 19, 2014
@myronmarston myronmarston Fix standalone so it doesn’t infect other objects.
This also makes `extend RSpec::Mocks::ExampleMethods`
work properly.

Fixes #845.
ac99800
@JonRowe JonRowe Merge pull request #846 from rspec/isolate-standalone
Fix standalone so it doesn’t infect other objects.
17c7b2d
Commits on Dec 22, 2014
@mrgilman mrgilman Prevent invoked expectations from being modified after they are invoked.
0eb9462
@samphippen samphippen Changelog entry for #837
3f1124e
@samphippen samphippen Merge pull request #837 from rspec/samphippen/prevent-expectation-mod…
…ification

Prevent invoked expectations from being modified after they are invoked.
f74dfe0
Commits on Dec 23, 2014
@imtayadeway imtayadeway Fix typo on README line 380.
* change 'sematically' to 'semantically'
* remove some whitespace from line 55.
f8c1fd8
@myronmarston myronmarston Merge pull request #847 from imtayadeway/fix-readme-typo
Fix typo on README line 380.
85327df
Commits on Dec 28, 2014
@benmoss benmoss Updated travis build scripts (from rspec-dev)
7f70238
@myronmarston myronmarston Merge pull request #849 from benmoss/update-travis-build-scripts-2014…
…-12-27-for-master

Updated travis build scripts (from rspec-dev)
83ee10b
@myronmarston myronmarston YAML::ENGINE has been removed from Ruby 2.2.
c152810
@myronmarston myronmarston Address MRI 2.2 warnings (possible reference to past scope).
From ruby/ruby@f5f6218.
It causes 280 warnings in our spec suite :(. The fix is to change the names of
variables and/or `let` definitions so they do not clash.

See https://bugs.ruby-lang.org/issues/10661 for more discussion.
9de9d60
Commits on Dec 29, 2014
@myronmarston myronmarston Merge pull request #850 from rspec/address-2-2-issues
Address 2.2 issues
f176c4b
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
0c50ee3
@tschady tschady fix spelling error
ade129e
Commits on Dec 30, 2014
@myronmarston myronmarston Merge pull request #852 from tschady/tws/fix_spelling
fix spelling error
c6254c4
@myronmarston myronmarston Merge pull request #851 from rspec/update-travis-build-scripts-2014-1…
…2-29-for-master

Updates from rspec-dev (2014-12-29)
8f03c38
@myronmarston myronmarston Handle stubbing IO#write and then calling IO#reopen.
5a0a48c
Commits on Jan 01, 2015
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
15637a7
@myronmarston myronmarston Merge pull request #853 from rspec/fix-stub-stderr-error
Handle stubbing IO#write and then calling IO#reopen.
a8808c2
@myronmarston myronmarston Merge pull request #855 from rspec/update-travis-build-scripts-2014-1…
…2-31-for-master

Updates from rspec-dev (2014-12-31)
69de705
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
61b7c17
Commits on Jan 02, 2015
@myronmarston myronmarston Merge pull request #856 from rspec/update-travis-build-scripts-2015-0…
…1-01-for-master

Updates from rspec-dev (2015-01-01)
dd46b28
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
9fe8a21
@JonRowe JonRowe Merge pull request #857 from rspec/update-travis-build-scripts-2015-0…
…1-01-for-master

Updates from rspec-dev (2015-01-01)
e9b6bf3
Commits on Jan 08, 2015
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
b0b91f3
@myronmarston myronmarston JRuby has different behavior here.
It doesn’t trigger the `NameError` like other rubies.
692f8c7
@myronmarston myronmarston Merge pull request #858 from rspec/update-travis-build-scripts-2015-0…
…1-07-for-master

Updates from rspec-dev (2015-01-07)
5011331
@myronmarston myronmarston Fix inaccurate doc string in cucumber scenario.
This was apparently a copy/paste error.

Thanks to @aruprakshit for notifying me of this problem.
3d29dd2
Commits on Jan 09, 2015
@JonRowe JonRowe Merge pull request #860 from rspec/fix-cuke-copy-paste-error
Fix inaccurate doc string in cucumber scenario.
83221b3
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
6cc173b
Commits on Jan 10, 2015
@myronmarston myronmarston Forwardport 2.99.3 release notes.
[ci skip]
c10548c
Commits on Jan 11, 2015
@JonRowe JonRowe add an api for customising how verifying doubles are checked
6a7d7d8
@JonRowe JonRowe change api call to pass reference
2e9418b
@JonRowe JonRowe rename const to target to better reflect nature
48eb2d4
@JonRowe JonRowe add test coverage for reference target
379ada8
@JonRowe JonRowe update documentation for new callback
79e2a87
@JonRowe JonRowe rename DirectModuleReference to AnonymousModuleReference to accuratel…
…y reflect when it is used
40f2862
@myronmarston myronmarston Make comment more accurate.
774fd3f
@myronmarston myronmarston Add missing spec coverage for anonymous module verifying doubles.
88f3f4e
@JonRowe JonRowe Merge pull request #832 from rspec/extend_verifying_doubles_api
Add an api for customising how verifying doubles are checked
fd0158f
@myronmarston myronmarston Merge pull request #859 from rspec/update-travis-build-scripts-2015-0…
…1-08-for-master

Updates from rspec-dev (2015-01-08)
44dee47
@myronmarston myronmarston Revert "Updates from rspec-dev (2015-01-08)"
91e6a77
@myronmarston myronmarston Merge pull request #861 from rspec/revert-859-update-travis-build-scr…
…ipts-2015-01-08-for-master

Revert "Updates from rspec-dev (2015-01-08)"
9f5babd
Commits on Jan 15, 2015
@myronmarston myronmarston Refactor odd memoization.
It is odd here because within the matcher, we call
`@expectation = expect`, and within `expect` it was
internally memoizing, which means `@expectation`
was being assigned twice. It’s also dubious to
do so because we want to minimize internal memoization
since a matcher can be re-used against a different
target.
1b264f3
@JonRowe JonRowe docs for object references exposed by #832 callback
da3f322
@JonRowe JonRowe expose object rather than class as target
d868ecb
@myronmarston myronmarston Update spec to reflect the target being the object itself.
7478671
@myronmarston myronmarston Improve docs so they render properly with a YARD server.
While we're at it, remove AnonymousModuleReference -- we don’t need it anymore!
6493f2a
@myronmarston myronmarston Clarify error message.
152cc5e
Commits on Jan 16, 2015
@JonRowe JonRowe Merge pull request #863 from rspec/docs_for_832
Docs for object references exposed by #832 callback
cfaf4ef
@myronmarston myronmarston Provide a clear error when received message args are mutated.
...before a `have_received(...).with(...)` expectation.

Fixes #865.
ed3fb3b
@myronmarston myronmarston Just use `Array#hash`.
As @jferris pointed out, it’s sufficient. Besides
being simpler (and likely faster, though I haven’t
benchmarked it), this does fewer object allocations.
52c69f1
Commits on Jan 17, 2015
@rf- rf- Make and_wrap_original work with any_instance (fix #867)
There were a couple of different issues preventing `and_wrap_original`
from working when used with `any_instance`.
97ba302
@myronmarston myronmarston Merge pull request #869 from brigade/master
Make and_wrap_original work with any_instance
09ceebb
@myronmarston myronmarston Add changelog for #869.
[ci skip]
65d3b65
@JonRowe JonRowe Merge pull request #866 from rspec/refactor-odd-memoization
Refactor odd memoization.
fdbad95
@cupakromer cupakromer Include details on how to run against `master`.
A very common issue is when a user attempts to run against the `master`
branch. Simply pointing to `master` doesn't work. This adds the steps
necessary to use `master`.

We need all of the repos in order to also satisfy any other gems which
may have a dependency on the `rspec` gem.

[ci skip]
d65446b
@cupakromer cupakromer Merge pull request #870 from rspec/help-for-running-master
Include details on how to run against `master`.
04a2d37
Commits on Jan 18, 2015
@JonRowe JonRowe Merge pull request #868 from rspec/address-issue-865
Provide a clear error when received message args are mutated.
da33d26
Commits on Jan 19, 2015
@JonRowe JonRowe update docs for rspec/rspec_rails#1238
[skip ci]
25d4345
@JonRowe JonRowe Merge pull request #864 from rspec/update_docs_for_rr_1238
Amend docs post #832 and rspec/rspec-rails#1238
9191106
@myronmarston myronmarston Reword comment to not use “external” twice.
Thanks to @waterlink for pointing this out.
8a0962a
@myronmarston myronmarston Ignore arg mutations for method calls we are not concerned with.
fc9e9a5
@JonRowe JonRowe Merge pull request #871 from rspec/pr-868-followups
Pr 868 followups
800ea20
Commits on Jan 21, 2015
@myronmarston myronmarston Better formatting for error message.
73ac1f6
@myronmarston myronmarston Deal with verified doubles for classes that redefined `name`.
These sorts of classes worked fine before #824 was
merged, and the switch to using a NamedObjectReference
based on the name broke things for them. This restores
support.
235e43e
@JonRowe JonRowe Merge pull request #873 from rspec/824-followups
824 followups
56392d9
Commits on Jan 22, 2015
@sivagollapalli sivagollapalli FIX# Displaying 'Diff' in new line
3ab98c5
Commits on Jan 27, 2015
@myronmarston myronmarston Improve explanation about verified double argument verification.
Closes #878.
b8a838a
@myronmarston myronmarston Merge pull request #879 from rspec/clarify-verifying-double-arg-verif…
…ication

Improve explanation about verified double argument verification.
d213d26
Commits on Jan 28, 2015
@sivagollapalli sivagollapalli Removed extra space to make left align
9edc017
@sivagollapalli sivagollapalli Added specs for #875
6fc4603
@myronmarston myronmarston Merge pull request #876 from sivagollapalli/issue_875
FIX# Displaying 'Diff' in new line
07ee32f
Commits on Jan 29, 2015
@myronmarston myronmarston Explicitly tag pending specs for ordered/vague count combinations.
This will now print the reason it is pending on CI and skip
them locally since it adds a lot of noise to our output
and we have yet to attempt to address them.
ab93dda
@myronmarston myronmarston Merge pull request #880 from rspec/cleanup-some-pending-specs
Explicitly tag pending specs for ordered/vague count combinations.
a5b4f5b
Commits on Jan 31, 2015
@YorickPeterse YorickPeterse Removed rubysl from the Gemfile.
This hasn't been required anymore since quite a while. Starting with 2.2.0 (if I
remember correctly) Rubinius takes care of ensuring the rubysl Gems are always
available, with or without Bundler.
ac486cd
@myronmarston myronmarston Merge pull request #882 from YorickPeterse/master
Removed rubysl from the Gemfile.
08186cc
Commits on Feb 03, 2015
@myronmarston myronmarston Update changelog for v3.2.0 [ci skip]
90cb471
@myronmarston myronmarston Release 3.2.0
d7ed065
@myronmarston myronmarston Bump version to 3.3.0.pre
44d81d6
Commits on Feb 04, 2015
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
1184e78
Commits on Feb 05, 2015
@myronmarston myronmarston When stubbing `MyClass.new` verify against `MyClass#initialize`.
Closes #883.
990b017
@myronmarston myronmarston Merge pull request #885 from rspec/update-travis-build-scripts-2015-0…
…2-03-for-master

Updates from rspec-dev (2015-02-03)
44d2557
@myronmarston myronmarston Pend specs to deal with jruby/jruby#2565.
8056a9e
@JonRowe JonRowe Merge pull request #886 from rspec/use-initialize-signature-for-new
When stubbing `MyClass.new` verify against `MyClass#initialize`.
0ab18a3
Commits on Feb 09, 2015
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
7cd14ae
@myronmarston myronmarston Merge pull request #888 from rspec/update-travis-build-scripts-2015-0…
…2-08-for-master

Updates from rspec-dev (2015-02-08)
f03b686
@myronmarston myronmarston Remove unused method.
a77686b
@JonRowe JonRowe Merge pull request #889 from rspec/remove-unused-method
Remove unused method.
250a5de
Commits on Feb 11, 2015
@imtayadeway imtayadeway Fix argument formatting for received.
08eb0f2
@imtayadeway imtayadeway Unify similar args description methods.
ErrorGenerator#actual_method_call_args_description and
ErrorGenerator#expected_method_call_args_description were almost
identical. This change moves the common code from both into the
ErrorGenerator#method_call_args_description method and yields to a block
which lets the caller decide on what condition to show the formatted args.
7f6e065
Commits on Feb 12, 2015
@JonRowe JonRowe Merge pull request #891 from imtayadeway/fix-received-matcher-descrip…
…tions

Fix argument formatting for received.
91d3f5a
@JonRowe JonRowe changelog for #891
[skip ci]
3828148
Commits on Feb 17, 2015
@myronmarston myronmarston Clarify changelog for #891.
ddb4c20
@myronmarston myronmarston Cleanup whitespace.
b096ec9
@myronmarston myronmarston Update to new rspec-support library wide checks.
3fff060
@myronmarston myronmarston Don’t load stringio unnecessarily.
394d373
@myronmarston myronmarston Deal with the fact we load securerandom on 1.9.2.
0d3e0f8
@myronmarston myronmarston Update based on latest rspec-support requires.
fec1b7f
@JonRowe JonRowe Merge pull request #894 from rspec/allowed-stdlib
Allowed stdlib
63a65c2
@imtayadeway imtayadeway Add more specific "does not implement" messages.
The unimplemented error message gives no indication of whether the
object is a class or instance double. This change passes that object to
the error generator so that it can create a more specific message
depending on whether it is an instance or class double. It defaults to
the original "<object> does not implement <method>" for anything else.

#838
4b1b008
Commits on Feb 18, 2015
@JonRowe JonRowe Merge pull request #896 from imtayadeway/instance-class-double-verifi…
…cation

Add more specific "does not implement" messages.
4777fd0
@JonRowe JonRowe change for #896
[skip ci]
149293e
Commits on Feb 23, 2015
@myronmarston myronmarston Make doc string more accurate.
8e56f83
@myronmarston myronmarston Stop calling methods on args passed to a stubbed method.
Any method call may mutate an object, so we can't safely call
anything on a passed argument.

This reverts the following PRs and commits:

* #871:
  * 8a0962a ("Reword comment to not use “external” twice.")
  * 52c69f1 ("Just use `Array#hash`.")
* #868:
  * ed3fb3b ("Provide a clear error when received message args are mutated.")
  * fc9e9a5 ("Ignore arg mutations for method calls we are not concerned with.")

This adds notes to the docs about using mutated args
with `have_received(…).with(…)`.

Fixes #892.
8d071d5
@myronmarston myronmarston Fixup formatting of `@example` YARD comments.
- No blank line after `@example`; YARD renders that
  as a blank line of code.
- Standardize on 2 spaces.
62236cd
@JonRowe JonRowe Merge pull request #900 from rspec/revert-arg-mutation-error
Revert arg mutation error
4c0664c
Commits on Feb 24, 2015
@myronmarston myronmarston Forwardport 3.2.1 release notes.
c455fc5
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
d437b03
Commits on Feb 25, 2015
@myronmarston myronmarston Merge pull request #902 from rspec/update-travis-build-scripts-2015-0…
…2-24-for-master

Updates from rspec-dev (2015-02-24)
b610169
Commits on Mar 06, 2015
@myronmarston myronmarston Simplify `and_raise`.
Passing args directly to `raise` is much simpler :).
6c0c8d1
Commits on Mar 07, 2015
@nicholasjhenry nicholasjhenry Fix broken links in 'Further Reading'
ad0c0ac
Commits on Mar 08, 2015
@soulcutter soulcutter Merge pull request #906 from rspec/simplify-and-raise
Simplify `and_raise`.
922273f
@JonRowe JonRowe Merge pull request #907 from nicholasjhenry/fix-readme-links
Fix broken links in 'Further Reading'
f190e66
Commits on Mar 10, 2015
@imtayadeway imtayadeway Provide a message if the wrong double is used.
If an undefined method is stubbed on an instance double, the error generator
will check to see if it is defined on the class level and provide a
message to indicate that this may be what was meant. It also does the
converse for class doubles and instance methods.

#838
cd51da8
@myronmarston myronmarston Merge pull request #908 from imtayadeway/instance-class-double-verifi…
…cation-message

Provide a message if the wrong double is used.
352a57d
@myronmarston myronmarston Update changelog to mention #908.
[ci skip]
fbaf33e
Commits on Mar 15, 2015
@JonRowe JonRowe correct documentation to highlight the expected behaviour
[skip ci]
7b13b85
@myronmarston myronmarston Merge pull request #911 from rspec/correct_docs_for_910
Correct any_instance documentation.
9597d6f
Commits on Mar 16, 2015
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
0a007fa
@JonRowe JonRowe Merge pull request #912 from rspec/update-travis-build-scripts-2015-0…
…3-15-for-master

Updates from rspec-dev (2015-03-15)
68a3919
Commits on Mar 20, 2015
@samphippen samphippen Make message expectations raise at the end of tests even if they have…
… eagerly raised.
e147665
@samphippen samphippen Changelog entry for #884
fb2e0f1
@samphippen samphippen Merge pull request #884 from rspec/samphippen/fix-874
Ensure negative expectations raise during RSpec verification time.
84e7da2
@samphippen samphippen Fix changelog entry for #884
b5e514d
Commits on Mar 24, 2015
@johnceh johnceh Small fix for typo
b674f28
@JonRowe JonRowe Merge pull request #913 from johnceh/typo-fix-on-documentation
Small fix for typo
838fc71