The NetBSD Project

CVS log for pkgsrc/devel/ruby-rspec-mocks/distinfo

[BACK] Up to [] / pkgsrc / devel / ruby-rspec-mocks

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jul 15 14:41:18 2023 UTC (2 months, 2 weeks ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, HEAD
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (colored)

devel/ruby-rspec-mocks: update to 3.12.6

3.12.6 (2023-07-11)

Bug Fixes:

* Fix an issue with and_call_original when using the method_missing fallback
  with keyword arguments. (Igor Drozdov, #1552)

Revision 1.39 / (download) - annotate - [select for diffs], Thu Apr 27 14:19:11 2023 UTC (5 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

devel/ruby-rspec-mocks: update to 3.12.5

3.12.5 (2023-03-30)

* Fix compatibility issue with Rails where active_support monkey patches
  with when using any instance. (Lachlan Sylvester, #1540)

Revision 1.38 / (download) - annotate - [select for diffs], Wed Mar 15 14:30:41 2023 UTC (6 months, 2 weeks ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored)

devel/ruby-rspec-mocks: update to 3.12.4

3.12.4 (2023-01-17)

Bug Fixes:

* Fix an issue with asserting that Array#reverse is never called. (Brad
  Trick, #1533)
* Fix compatibility issue with Rails where active_support monkey patches
  with. (Jean Boussier, #1531, #1534)

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jan 19 14:01:27 2023 UTC (8 months, 1 week ago) by taca
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

devel/ruby-rspec-mocks: update to 3.12.3

3.12.3 (2023-01-17)

Bug Fixes:

* Fix keyword delegation in send for verifying doubles on Ruby 3.
  (Charlie Honig, #1485)

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jan 9 05:35:13 2023 UTC (8 months, 3 weeks ago) by taca
Branch: MAIN
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)

devel/ruby-rspec-mocks: update to 3.12.2

3.12.2 (2023-01-07)

Full Changelog

Bug Fixes:

* Fix implementation blocks for mocks using keyword arguments on Ruby
  3.2.0. (Adam Steel, #1508)
* Fix keyword argument assertions when mocking using with on Ruby
  3.2.0. (Slava Kardakov, Benoit Tigeot, Phil Pirozhkov, Benoit Daloze,

Revision 1.35 / (download) - annotate - [select for diffs], Sun Dec 18 14:17:18 2022 UTC (9 months, 1 week ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

devel/ruby-rspec-mocks: update to 3.12.1

3.12.1 (2022-12-10)

Bug Fixes:

* Remove empty diff marker when a diff only contains console codes.
  (Jon Rowe, #1506)

* Show keyword vs hash diff marker when arguments are not `==`
  (Jon Rowe, #1506)

* Change check to detect frozen objects to rescue errors rather than
  pre-empting by checking `frozen?` due to some objects mis-behaving.
  (Keegan Roth, #1401)

* Prevent unfulfilled expectations using `expect_any_instance_of` across a
  class inheritance boundary from raising rather than failing.
  (Jon Rowe, #1496)

* Prevent a misleading error message when using `allow(...).not_to` with
  unsupported matchers.  (Phil Pirozhkov, #1503)

Revision 1.34 / (download) - annotate - [select for diffs], Wed Nov 30 13:47:54 2022 UTC (10 months ago) by taca
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

devel/ruby-rspec-mocks: update to 3.12.0

3.12.0 (2022-10-26)


* Improve diff output when diffing keyword arguments against hashes.  (Jean
  Boussier, #1461)

Revision 1.33 / (download) - annotate - [select for diffs], Fri Aug 26 11:20:19 2022 UTC (13 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

devel/ruby-rspec-mocks: update to 3.11.1

3.11.1 (2022-03-31)

Bug Fixes:

* Add extra ruby2_keywords calls to properly designate methods using *args
  to pass keyword around, fixes an issue with TruffleRuby. (Benoit Daloze,

Revision 1.32 / (download) - annotate - [select for diffs], Sat Feb 12 13:33:02 2022 UTC (19 months, 2 weeks ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

devel/ruby-rspec-mocks: update to 3.11.0

3.11.0 (2022-02-09)


* Add and_invoke implementation for configuring responses to receive (and
  receive_messages) with multiple callable objects. (Kyle Smith, #1411)

Revision 1.31 / (download) - annotate - [select for diffs], Tue Oct 26 10:19:47 2021 UTC (23 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:

The following distfiles were unfetchable (note: some may be only fetched

./devel/pvs/distinfo pvs-3.2-solaris.tgz

Revision 1.30 / (download) - annotate - [select for diffs], Thu Oct 7 13:44:22 2021 UTC (23 months, 3 weeks ago) by nia
Branch: MAIN
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (colored)

devel: Remove SHA1 hashes for distfiles

Revision 1.29 / (download) - annotate - [select for diffs], Wed Feb 3 14:17:20 2021 UTC (2 years, 7 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored)

devel/ruby-rspec-mocs: update to 3.10.2

3.10.2 / 2021-01-27

Bug Fixes:

* Support keyword arguments with and_call_original on Ruby 3.0. (Bryan
  Powell, #1385)
* RSpec::Mocks::Constant#previously_defined? is now always a
  boolean. (Phil Pirozhkov, #1397)
* Support keyword arguments on Ruby 3.0 when used with
  expect_any_instance_of or allow_any_instance_of with
  and_call_original. (Jess Hottenstein, #1407)

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jan 11 13:08:02 2021 UTC (2 years, 8 months ago) by taca
Branch: MAIN
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)

devel/ruby-rspec-mocks: update to 3.10.1

### 3.10.1 / 2020-12-27
[Full Changelog](

Bug Fixes:

* Issue `ArgumentError` rather than `TypeError` when unsupported methods on
  unsupported objects are attempted to be stubbed. (@zhisme, #1357)

### 3.10.0 / 2020-10-30
[Full Changelog](

* Add the ability to set a custom error generator in `MessageExpectation`.
  This will allow rspec-expectations to inject a custom failure message.
  (Benoit Tigeot and Nicolas Zermati, #1312)
* Return the result of the block passed to `RSpec::Mocks.with_temporary_scope`
  when block run. (@expeehaa, #1329)

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jan 16 15:47:49 2020 UTC (3 years, 8 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

devel/ruby-rspec-mocks: update to 3.9.1

Update ruby-rspec-mocks to 3.9.1.

### 3.9.1 / 2019-12-31
[Full Changelog](

Bug Fixes:

* Trigger `RSpec::Mocks.configuration.verifying_double_callbacks` when using
  `allow_any_instance_of` or `expect_any_instance_of` (Daniel Orner, #1309)

Revision 1.26 / (download) - annotate - [select for diffs], Sat Nov 2 14:35:46 2019 UTC (3 years, 10 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

devel/ruby-rspec-mocks: update to 3.9.0

Update ruby-rspec-mocks to 3.9.0.

pkgsr change: Add "USE_LANGUAGES=	# none".

### 3.9.0 / 2019-10-07
[Full Changelog](


* Improve thread safety of message expectations by using Mutex to prevent
  deadlocking errors. (Ry Biesemeyer, #1236)
* Add the ability to use `time` as an alias for `times`. For example:
  `expect(Class).to receive(:method).exactly(1).time`.
  (Pistos, Benoit Tigeot, #1271)

### 3.8.2 / 2019-10-02
[Full Changelog](

* Allow `array_including` argument matchers to be nested.
  (Emmanuel Delmas, #1291)

### 3.8.1 / 2019-06-13
[Full Changelog](

Bug Fixes:

* Ensure stubbing methods does not change their visibility.
  (Kevin Boschert, #1277)

Revision 1.25 / (download) - annotate - [select for diffs], Wed Feb 6 15:13:55 2019 UTC (4 years, 7 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

devel/ruby-rspec-mocks: update to 3.8.0

### 3.8.0 / 2018-08-04
[Full Changelog](

Bug Fixes:

* Issue error when encountering invalid "counted" negative message expectations.
  (Sergiy Yarinovskiy, #1212)
* Ensure `allow_any_instance_of` and `expect_any_instance_of` can be temporarily
  supressed. (Jon Rowe, #1228)
* Ensure `expect_any_instance_of(double).to_not have_received(:some_method)`
  fails gracefully (as its not supported) rather than issuing a `NoMethodError`.
  (Maxim Krizhanovsky, #1231)

Revision 1.24 / (download) - annotate - [select for diffs], Wed Mar 14 14:20:38 2018 UTC (5 years, 6 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored)

devel/ruby-rspec-mocks: update to 3.7.0

### 3.7.0 / 2017-10-17
[Full Changelog](


* Improve compatibility with `--enable-frozen-string-literal` option
  on Ruby 2.3+. (Pat Allan, #1165)

Bug Fixes:

* Fix `hash_including` and `hash_excluding` so that they work against
  subclasses of `Hash`. (Aaron Rosenberg, #1167)

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 5 14:06:11 2017 UTC (6 years, 3 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2
Changes since 1.22: +5 -5 lines
Diff to previous 1.22 (colored)

Update ruby-rspec-mocks to 3.6.0.

### 3.6.0 / 2017-05-04
[Full Changelog](

Bug Fixes:

* Fix "instance variable @color not initialized" warning when using
  rspec-mocks without rspec-core. (Myron Marston, #1142)
* Restore aliased module methods properly when stubbing on 1.8.7.
  (Samuel Giddins, #1144)
* Allow a message chain expectation to be constrained by argument(s).
  (Jon Rowe, #1156)

### 3.6.0.beta2 / 2016-12-12
[Full Changelog](


* Add new `without_partial_double_verification { }` API that lets you
  temporarily turn off partial double verification for an example.
  (Jon Rowe, #1104)

### 3.6.0.beta1 / 2016-10-09
[Full Changelog](

Bug Fixes:

* Return the test double instance form `#freeze` (Alessandro Berardi, #1109)
* Allow the special logic for stubbing `new` to work when `<Class>.method` has
  been redefined. (Proby, #1119)

Revision 1.22 / (download) - annotate - [select for diffs], Sun Oct 9 15:04:44 2016 UTC (6 years, 11 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)

Update ruby-rspec-mocks to 3.5.0.

### 3.5.0 / 2016-07-01
[Full Changelog](


* Provides a nice string representation of
  `RSpec::Mocks::MessageExpectation` (Myron Marston, #1095)

### 3.5.0.beta4 / 2016-06-05
[Full Changelog](


* Add `and_throw` to any instance handling. (Tobias BĆ¼hlmann, #1068)

### 3.5.0.beta3 / 2016-04-02
[Full Changelog](


* Issue warning when attempting to use unsupported
  `allow(...).to receive(...).ordered`. (Jon Rowe, #1000)
* Add `rspec/mocks/minitest_integration`, to properly integrate rspec-mocks
  with minitest. (Myron Marston, #1065)

### 3.5.0.beta2 / 2016-03-10
[Full Changelog](


* Improve error message displayed when using `and_wrap_original` on pure test
  doubles. (betesh, #1063)

Bug Fixes:

* Fix issue that prevented `receive_message_chain(...).with(...)` working
  correctly on "any instance" mocks. (Jon Rowe, #1061)

### 3.5.0.beta1 / 2016-02-06
[Full Changelog](

Bug Fixes:

* Allow `any_instance_of(...).to receive(...)` to use `and_yield` multiple
  times. (Kilian Cirera Sant, #1054)
* Allow matchers which inherit from `rspec-mocks` matchers to be used for
  `allow`. (Andrew Kozin, #1056)
* Prevent stubbing `respond_to?` on partial doubles from causing infinite
  recursion. (Jon Rowe, #1013)
* Prevent aliased methods from disapearing after being mocked with
  `any_instance` (regression from #1043). (Joe Rafaniello, #1060)

Revision 1.21 / (download) - annotate - [select for diffs], Tue Feb 16 16:01:13 2016 UTC (7 years, 7 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

Update ruby-rspec-mocks to 3.4.1.

### 3.4.1 / 2016-01-10
[Full Changelog](

Bug Fixes:

* Fix `any_instance` to work properly on Ruby 2.3. (Joe Rafaniello, #1043)

Revision 1.20 / (download) - annotate - [select for diffs], Sun Nov 29 14:51:46 2015 UTC (7 years, 10 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

Update ruby-rspec-mocks to 3.4.0.

### 3.4.0 / 2015-11-11
[Full Changelog](


* Make `expect(...).to have_received` work without relying upon
  rspec-expectations. (Myron Marston, #978)
* Add option for failing tests when expectations are set on `nil`.
  (Liz Rush, #983)

Bug Fixes:

* Fix `have_received { ... }` so that any block passed when the message
  was received is forwarded to the `have_received` block. (Myron Marston, #1006)
* Fix infinite loop in error generator when stubbing `respond_to?`.
  (Alex Dowad, #1022)
* Fix issue with using `receive` on subclasses (at a class level) with 1.8.7.
  (Alex Dowad, #1026)

Revision 1.19 / (download) - annotate - [select for diffs], Tue Nov 3 03:29:29 2015 UTC (7 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

Add SHA512 digests for distfiles for devel category

Issues found with existing distfiles:
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Sep 13 11:54:16 2015 UTC (8 years ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

Update ruby-rspec-mocks to 3.3.2.

### 3.3.2 / 2015-07-15
[Full Changelog](

Bug Fixes:

* Prevent thread deadlock errors during proxy creation (e.g. when using
  `before_verifying_doubles` callbacks). (Jon Rowe, #980, #979)

### 3.3.1 / 2015-06-19
[Full Changelog](

Bug Fixes:

* Fix bug in `before_verifying_double` callback logic that caused it to be called
  once for each class in the ancestor list when mocking or stubbing a class. Now
  it is only called for the mocked or stubbed class, as you would expect. (Sam
  Phippen, #974)

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 12 23:59:06 2015 UTC (8 years, 3 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

Update ruby-rspec-mocks to 3.3.0.

### 3.3.0 / 2015-06-12
[Full Changelog](


* When stubbing `new` on `MyClass` or `class_double(MyClass)`, use the
  method signature from `MyClass#initialize` to verify arguments.
  (Myron Marston, #886)
* Use matcher descriptions when generating description of received arguments
  for mock expectation failures. (Tim Wade, #891)
* Avoid loading `stringio` unnecessarily. (Myron Marston, #894)
* Verifying doubles failure messages now distinguish between class and instance
  level methods. (Tim Wade, #896, #908)
* Improve mock expectation failure messages so that it combines both
  number of times and the received arguments in the output. (John Ceh, #918)
* Improve how test doubles are represented in failure messages.
  (Siva Gollapalli, Myron Marston, #932)
* Rename `RSpec::Mocks::Configuration#when_declaring_verifying_double` to
  `RSpec::Mocks::Configuration#before_verifying_doubles` and utilise when
  verifying partial doubles. (Jon Rowe, #940)
* Use rspec-support's `ObjectFormatter` for improved formatting of
  arguments in failure messages so that, for example, full time
  precisions is displayed for time objects. (Gavin Miller, Myron Marston, #955)

Bug Fixes:

* Ensure expectations that raise eagerly also raise during RSpec verification.
  This means that if exceptions are caught inside test execution the test will
  still fail. (Sam Phippen, #884)
* Fix `have_received(msg).with(args).exactly(n).times` and
  `receive(msg).with(args).exactly(n).times` failure messages
  for when the message was received the wrong number of times with
  the specified args, and also received additional times with other
  arguments. Previously it confusingly listed the arguments as being
  mis-matched (even when the double was allowed to receive with any
  args) rather than listing the count. (John Ceh, #918)
* Fix `any_args`/`anything` support so that we avoid calling `obj == anything`
  on user objects that may have improperly implemented `==` in a way that
  raises errors. (Myron Marston, #924)
* Fix edge case involving stubbing the same method on a class and a subclass
  which previously hit a `NoMethodError` internally in RSpec. (Myron Marston #954)
* Fix edge case where the message received count would be incremented multiple
  times for one failure. (Myron Marston, #957)
* Fix failure messages for when spies received the expected message with
  different arguments and also received another message. (Maur¾­æćio Linhares, #960)
* Silence whitespace-only diffs. (Myron Marston, #969)

Revision 1.16 / (download) - annotate - [select for diffs], Fri Mar 13 13:46:44 2015 UTC (8 years, 6 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

Update ruby-rspec-mocks to 3.2.1.

### 3.2.1 / 2015-02-23
[Full Changelog](

Bug Fixes:

* Add missing `rspec/support/differ` require so that rspec-mocks can be
  used w/o rspec-expectations (which also loads the differ and hided the
  fact we forgot to require it). (Myron Marston, #893)
* Revert tracking of received arg mutation (added in 3.2.0 to provide an
  error in a situation we can't support) as our implementation has side
  effects on non-standard objects and there's no solution we could come
  up with that always works. (Myron Marston, #900)

Revision 1.15 / (download) - annotate - [select for diffs], Sat Feb 7 14:42:31 2015 UTC (8 years, 7 months ago) by taca
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

Update ruby-rspec-mocks to 3.2.0.

### 3.2.0 / 2015-02-03
[Full Changelog](


* Treat `any_args` as an arg splat, allowing it to match an arbitrary
  number of args at any point in an arg list. (Myron Marston, #786)
* Print diffs when arguments in mock expectations are mismatched.
  (Sam Phippen, #751)
* Support names for verified doubles (`instance_double`, `instance_spy`,
  `class_double`, `class_spy`, `object_double`, `object_spy`). (Cezary
  Baginski, #826)
* Make `array_including` and `hash_including` argument matchers composable.
  (Sam Phippen, #819)
* Make `allow_any_instance_of(...).to receive(...).and_wrap_original`
  work. (Ryan Fitzgerald, #869)

Bug Fixes:

* Provide a clear error when users wrongly combine `no_args` with
  additional arguments (e.g. `expect().to receive().with(no_args, 1)`).
  (Myron Marston, #786)
* Provide a clear error when users wrongly use `any_args` multiple times in the
  same argument list (e.g. `expect().to receive().with(any_args, 1, any_args)`.
  (Myron Marston, #786)
* Prevent the error generator from using user object #description methods.
  See [#685](
  (Sam Phippen, #751)
* Make verified doubles declared as `(instance|class)_double(SomeConst)`
  work properly when `SomeConst` has previously been stubbed.
  `(instance|class)_double("SomeClass")` already worked properly.
  (Myron Marston, #824)
* Add a matcher description for `receive`, `receive_messages` and
  `receive_message_chain`. (Myron Marston, #828)
* Validate invocation args for null object verified doubles.
  (Myron Marston, #829)
* Fix `RSpec::Mocks::Constant.original` when called with an invalid
  constant to return an object indicating the constant name is invalid,
  rather than blowing up. (Myron Marston, #833)
* Make `extend RSpec::Mocks::ExampleMethods` on any object work properly
  to add the rspec-mocks API to that object. Previously, `expect` would
  be undefined. (Myron Marston, #846)
* Fix `require 'rspec/mocks/standalone'` so that it only affects `main`
  and not every object. It's really only intended to be used in a REPL
  like IRB, but some gems have loaded it, thinking it needs to be loaded
  when using rspec-mocks outside the context of rspec-core.
  (Myron Marston, #846)
* Prevent message expectations from being modified by customization methods
  (e.g. `with`) after they have been invoked. (Sam Phippen and Melanie Gilman, #837)
* Handle cases where a method stub cannot be removed due to something
  external to RSpec monkeying with the method definition. This can
  happen, for example, when you `file.reopen(io)` after previously
  stubbing a method on the `file` object. (Myron Marston, #853)
* Provide a clear error when received message args are mutated before
  a `have_received(...).with(...)` expectation. (Myron Marston, #868)

Revision 1.14 / (download) - annotate - [select for diffs], Mon Feb 2 14:22:29 2015 UTC (8 years, 7 months ago) by taca
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Update ruby-rspec-mocks to 3.1.3.

Changes from 2.14.6 is too many to write here, please refer Changelog.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Mar 14 16:42:56 2014 UTC (9 years, 6 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Update ruby-rspec-mocks to 2.14.6.

### 2.14.6 development
[full changelog](

Bug Fixes:

* Ensure `any_instance` method stubs and expectations are torn down regardless of
  expectation failures. (Sam Phippen)

### 2.14.5 / 2014-02-01
[full changelog](

Bug Fixes:

* Fix regression that caused block implementations to not receive all
  args on 1.8.7 if the block also receives a block, due to Proc#arity
  reporting `1` no matter how many args the block receives if it
  receives a block, too. (Myron Marston)

### 2.14.4 / 2013-10-15
[full changelog](

Bug Fixes:

* Fix issue where unstubing methods on "any instances" would not
  remove stubs on existing instances (Jon Rowe)
* Fix issue with receive(:message) do ... end precedence preventing
  the usage of modifications (`and_return` etc) (Jon Rowe)

Revision 1.12 / (download) - annotate - [select for diffs], Sun Sep 15 10:15:50 2013 UTC (10 years ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Update ruby-rspec-mocks to 2.14.3.

### 2.14.3 / 2013-08-08
[full changelog](

Bug Fixes:

* Fix stubbing some instance methods for classes whose hierarchy includes
  a prepended Module (Bradley Schaefer)

### 2.14.2 / 2013-07-30
[full changelog](

Bug Fixes:

* Fix `as_null_object` doubles so that they return `nil` from `to_ary`
  (Jon Rowe).
* Fix regression in 2.14 that made `stub!` (with an implicit receiver)
  return a test double rather than stub a method (Myron Marston).

### 2.14.1 / 2013-07-07
[full changelog](

Bug Fixes:

* Restore `double.as_null_object` behavior from 2.13 and earlier: a
  double's nullness persisted between examples in earlier examples.
  While this is not an intended use case (test doubles are meant to live
  for only one example), we don't want to break behavior users rely
  on in a minor relase.  This will be deprecated in 2.99 and removed
  in 3.0. (Myron Marston)

### 2.14.0 / 2013-07-06
[full changelog](


* Document test spies in the readme. (Adarsh Pandit)
* Add an `array_including` matcher. (Sam Phippen)
* Add a syntax-agnostic API for mocking or stubbing a method. This is
  intended for use by libraries such as rspec-rails that need to mock
  or stub a method, and work regardless of the syntax the user has
  configured (Paul Annesley, Myron Marston and Sam Phippen).

Bug Fixes:

* Fix `double` so that it sets up passed stubs correctly regardless of
  the configured syntax (Paul Annesley).
* Allow a block implementation to be used in combination with
  `and_yield`, `and_raise`, `and_return` or `and_throw`. This got fixed
  in 2.13.1 but failed to get merged into master for the 2.14.0.rc1
  release (Myron Marston).
* `Marshal.dump` does not unnecessarily duplicate objects when rspec-mocks has
  not been fully initialized. This could cause errors when using `spork` or
  similar preloading gems (Andy Lindeman).

### 2.14.0.rc1 / 2013-05-27
[full changelog](


* Refactor internals so that the mock proxy methods and state are held
  outside of the mocked object rather than inside it. This paves the way
  for future syntax enhancements and removes the need for some hacky
  work arounds for `any_instance` dup'ing and `YAML` serialization,
  among other things. Note that the code now relies upon `__id__`
  returning a unique, consistent value for any object you want to
  mock or stub (Myron Marston).
* Add support for test spies. This allows you to verify a message
  was received afterwards using the `have_received` matcher.
  Note that you must first stub the method or use a null double.
  (Joe Ferris and Joƫl Quenneville)
* Make `at_least` and `at_most` style receive expectations print that they were
  expecting at least or at most some number of calls, rather than just the
  number of calls given in the expectation (Sam Phippen)
* Make `with` style receive expectations print the args they were expecting, and
  the args that they got (Sam Phippen)
* Fix some warnings seen under ruby 2.0.0p0 (Sam Phippen).
* Add a new `:expect` syntax for message expectations
  (Myron Marston and Sam Phippen).

Bug fixes

* Fix `any_instance` so that a frozen object can be `dup`'d when methods
  have been stubbed on that type using `any_instance` (Jon Rowe).
* Fix `and_call_original` so that it properly raises an `ArgumentError`
  when the wrong number of args are passed (Jon Rowe).
* Fix `double` on 1.9.2 so you can wrap them in an Array
  using `Array(my_double)` (Jon Rowe).
* Fix `stub_const` and `hide_const` to handle constants that redefine `send`
  (Sam Phippen).
* Fix `Marshal.dump` extension so that it correctly handles nil.
  (Luke Imhoff, Jon Rowe)
* Fix isolation of `allow_message_expectations_on_nil` (Jon Rowe)
* Use inspect to format actual arguments on expectations in failure messages (#280, Ben Langfeld)
* Protect against improperly initialised test doubles (#293) (Joseph Shraibman and Jon Rowe)


* Deprecate `stub` and `mock` as aliases for `double`. `double` is the
  best term for creating a test double, and it reduces confusion to
  have only one term (Michi Huber).
* Deprecate `stub!` and `unstub!` in favor of `stub` and `unstub`
  (Jon Rowe).
* Deprecate `at_least(0).times` and `any_number_of_times` (Michi Huber).

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jun 16 16:25:07 2013 UTC (10 years, 3 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

Update ruby-rspec-mocks to 2.13.1.

### 2.13.1 / 2013-04-06
[full changelog](

Bug fixes

* Allow a block implementation to be used in combination with
  `and_yield`, `and_raise`, `and_return` or `and_throw` (Myron Marston).

Revision 1.10 / (download) - annotate - [select for diffs], Mon Mar 11 07:48:23 2013 UTC (10 years, 6 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

Update ruby-rspec-mocks to 2.13.0.

### 2.13.0 / 2013-02-23
[full changelog](

Bug fixes

* Fix bug that caused weird behavior when a method that had
  previously been stubbed with multiple return values (e.g.
  `obj.stub(:foo).and_return(1, 2)`) was later mocked with a
  single return value (e.g. `obj.should_receive(:foo).once.and_return(1)`).
  (Myron Marston)
* Fix bug related to a mock expectation for a method that already had
  multiple stubs with different `with` constraints. Previously, the
  first stub was used, even though it may not have matched the passed
  args. The fix defers this decision until the message is received so
  that the proper stub response can be chosen based on the passed
  arguments (Myron Marston).
* Do not call `nil?` extra times on a mocked object, in case `nil?`
  itself is expected a set number of times (Myron Marston).
* Fix `missing_default_stub_error` message so array args are handled
  properly (Myron Marston).
* Explicitly disallow `any_instance.unstub!` (Ryan Jones).
* Fix `any_instance` stubbing so that it works with `Delegator`
  subclasses (Myron Marston).
* Fix `and_call_original` so that it works with `Delegator` subclasses
  (Myron Marston).
* Fix `any_instance.should_not_receive` when `any_instance.should_receive`
  is used on the same class in the same example. Previously it would
  wrongly report a failure even when the message was not received
  (Myron Marston).

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 11 02:31:45 2013 UTC (10 years, 7 months ago) by taca
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

Update ruby-rspec-mocks to 2.12.2.

### 2.12.2 / 2013-01-27
[full changelog](

Bug fixes

* Fix `and_call_original` to work properly for methods defined
  on a module extended onto an object instance (Myron Marston).
* Fix `stub_const` with an undefined constnat name to work properly
  with constant strings that are prefixed with `::` -- and edge case
  I missed in the bug fix in the 2.12.1 release (Myron Marston).
* Ensure method visibility on a partial mock is restored after reseting
  method stubs, even on a singleton module (created via `extend self`)
  when the method visibility differs between the instance and singleton
  versions (Andy Lindeman).

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 12 09:17:08 2013 UTC (10 years, 8 months ago) by taca
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

Update ruby-rspec-mocks to 2.12.1.

### 2.12.1 / 2012-12-21
[full changelog](

Bug fixes

* Fix `any_instance` to support `and_call_original`.
  (Myron Marston)
* Properly restore stubbed aliased methods on rubies
  that report the incorrect owner (Myron Marston and Andy Lindeman).

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 16 16:45:06 2012 UTC (10 years, 9 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Update ruby-rspec-mocks to 2.12.0.

### 2.12.0 / 2012-11-12
[full changelog](


* `and_raise` can accept an exception class and message, more closely
  matching `Kernel#raise` (e.g., `foo.stub(:bar).and_raise(RuntimeError, "message")`)
  (Bas Vodde)
* Add `and_call_original`, which will delegate the message to the
  original method (Myron Marston).


* Add deprecation warning when using `and_return` with `should_not_receive`
  (Neha Kumari)

### 2.11.3 / 2012-09-19
[full changelog](

Bug fixes

* Fix `:transfer_nested_constants` option of `stub_const` so that it
  doesn't blow up when there are inherited constants. (Myron Marston)
* `any_instance` stubs can be used on classes that override `Object#method`.
  (Andy Lindeman)
* Methods stubbed with `any_instance` are unstubbed after the test finishes.
  (Andy Lindeman)
* Fix confusing error message when calling a mocked class method an
  extra time with the wrong arguments (Myron Marston).

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 3 15:53:20 2012 UTC (11 years ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

Update ruby-rspec-mocks to 2.11.2

### 2.11.2 / 2012-08-11
[full changelog](

Bug fixes

* Don't modify `dup` on classes that don't support `dup` (David Chelimsky)
* Fix `any_instance` so that it works properly with methods defined on
  a superclass. (Daniel Eguzkiza)
* Fix `stub_const` so that it works properly for nested constants that
  share a name with a top-level constant (e.g. "MyGem::Hash"). (Myron

### 2.11.1 / 2012-07-09
[full changelog](

Bug fixes

* Fix `should_receive` so that when it is called on an `as_null_object`
  double with no implementation, and there is a previous explicit stub
  for the same method, the explicit stub remains (rather than being
  overriden with the null object implementation--`return self`). (Myron Marston)

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 2 00:45:55 2012 UTC (11 years, 4 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2012Q2-base, pkgsrc-2012Q2
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Update ruby-rspec-mocks to 2.10.1.

### 2.10.1 / 2012-05-05
[full changelog](

Bug fixes

* fix regression of edge case behavior
    * fixed failure of `object.should_receive(:message).at_least(0).times.and_return value`
    * fixed failure of `object.should_not_receive(:message).and_return value`

### 2.10.0 / 2012-05-03
[full changelog](

Bug fixes

* fail fast when an `exactly` or `at_most` expectation is exceeded

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 20 13:38:13 2012 UTC (11 years, 6 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2012Q1-base, pkgsrc-2012Q1
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Update ruby-rspec-mocks to 2.9.0.

### 2.9.0 / 2012-03-17
[full changelog](


* Support order constraints across objects (preethiramdev)

Bug fixes

* Allow a `as_null_object` to be passed to `with`
* Pass proc to block passed to stub (Aubrey Rhodes)
* Initialize child message expectation args to match any args (#109 -

Revision 1.3 / (download) - annotate - [select for diffs], Sat Mar 17 15:08:21 2012 UTC (11 years, 6 months ago) by taca
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

Update ruby-rspec-mocks to 2.8.0.

2.8.0 / 2012-01-04

full changelog

No changes for this release. Just releasing with the other rspec gems.

2.8.0.rc2 / 2011-12-19

full changelog

No changes for this release. Just releasing with the other rspec gems.

2.8.0.rc1 / 2011-11-06

full changelog


* Eliminate Ruby warnings (Matijs van Zuijlen)

Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 16 15:57:34 2011 UTC (11 years, 9 months ago) by taca
Branch: MAIN
CVS Tags: pkgsrc-2011Q4-base, pkgsrc-2011Q4
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

Update ruby-rspec-mocks package to 2.7.0.

Exact changes are unknown.

Revision / (download) - annotate - [select for diffs] (vendor branch), Sat Jun 18 03:47:40 2011 UTC (12 years, 3 months ago) by taca
Branch: TNF
CVS Tags: pkgsrc-base, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Importing ruby-rspec-mocks version 2.6.0, part of ruby-rspec 2.6.0.

Behaviour Driven Development for Ruby

# RSpec Mocks

rspec-mocks provides a test-double framework for rspec including support
for method stubs, fakes, and message expectations.

## Documentation

* [Cucumber features](
* [RDoc](

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jun 18 03:47:40 2011 UTC (12 years, 3 months ago) by taca
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>