summaryrefslogtreecommitdiff
path: root/devel/ruby-rspec-mocks
diff options
context:
space:
mode:
authortaca <taca>2013-09-15 10:15:50 +0000
committertaca <taca>2013-09-15 10:15:50 +0000
commitb7f595d7e88cf0e81c61b90a64207e451b1c4a69 (patch)
tree5452792d91f8154f396a6024f20f5075dc4ab53f /devel/ruby-rspec-mocks
parent08243a4d03bfa8a8f591b14f18b187a0b183d09f (diff)
downloadpkgsrc-b7f595d7e88cf0e81c61b90a64207e451b1c4a69.tar.gz
Update ruby-rspec-mocks to 2.14.3.
### 2.14.3 / 2013-08-08 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.2...v2.14.3) 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](http://github.com/rspec/rspec-mocks/compare/v2.14.1...v2.14.2) 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](http://github.com/rspec/rspec-mocks/compare/v2.14.0...v2.14.1) 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](http://github.com/rspec/rspec-mocks/compare/v2.14.0.rc1...v2.14.0) Enhancements: * 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](http://github.com/rspec/rspec-mocks/compare/v2.13.0...v2.14.0.rc1) Enhancements: * 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) Deprecations * 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).
Diffstat (limited to 'devel/ruby-rspec-mocks')
-rw-r--r--devel/ruby-rspec-mocks/Makefile4
-rw-r--r--devel/ruby-rspec-mocks/PLIST31
-rw-r--r--devel/ruby-rspec-mocks/distinfo8
3 files changed, 30 insertions, 13 deletions
diff --git a/devel/ruby-rspec-mocks/Makefile b/devel/ruby-rspec-mocks/Makefile
index a8a5c6de85b..30a8aea5da9 100644
--- a/devel/ruby-rspec-mocks/Makefile
+++ b/devel/ruby-rspec-mocks/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.11 2013/06/16 16:25:07 taca Exp $
+# $NetBSD: Makefile,v 1.12 2013/09/15 10:15:50 taca Exp $
-DISTNAME= rspec-mocks-2.13.1
+DISTNAME= rspec-mocks-2.14.3
CATEGORIES= devel
MAINTAINER= pkgsrc-users@NetBSD.org
diff --git a/devel/ruby-rspec-mocks/PLIST b/devel/ruby-rspec-mocks/PLIST
index 9b922172e78..81ef3115607 100644
--- a/devel/ruby-rspec-mocks/PLIST
+++ b/devel/ruby-rspec-mocks/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2013/06/16 16:25:07 taca Exp $
+@comment $NetBSD: PLIST,v 1.9 2013/09/15 10:15:50 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/.document
${GEM_LIBDIR}/.yardopts
@@ -13,16 +13,20 @@ ${GEM_LIBDIR}/features/argument_matchers/explicit.feature
${GEM_LIBDIR}/features/argument_matchers/general_matchers.feature
${GEM_LIBDIR}/features/argument_matchers/type_matchers.feature
${GEM_LIBDIR}/features/message_expectations/README.md
+${GEM_LIBDIR}/features/message_expectations/allow_any_instance_of.feature
${GEM_LIBDIR}/features/message_expectations/any_instance.feature
${GEM_LIBDIR}/features/message_expectations/block_local_expectations.feature.pending
${GEM_LIBDIR}/features/message_expectations/call_original.feature
-${GEM_LIBDIR}/features/message_expectations/expect_message.feature
+${GEM_LIBDIR}/features/message_expectations/expect_any_instance_of.feature
+${GEM_LIBDIR}/features/message_expectations/expect_message_using_expect.feature
+${GEM_LIBDIR}/features/message_expectations/expect_message_using_should_receive.feature
${GEM_LIBDIR}/features/message_expectations/receive_counts.feature
${GEM_LIBDIR}/features/message_expectations/warn_when_expectation_is_set_on_nil.feature
${GEM_LIBDIR}/features/method_stubs/README.md
${GEM_LIBDIR}/features/method_stubs/any_instance.feature
${GEM_LIBDIR}/features/method_stubs/as_null_object.feature
-${GEM_LIBDIR}/features/method_stubs/simple_return_value.feature
+${GEM_LIBDIR}/features/method_stubs/simple_return_value_with_allow.feature
+${GEM_LIBDIR}/features/method_stubs/simple_return_value_with_stub.feature
${GEM_LIBDIR}/features/method_stubs/stub_chain.feature
${GEM_LIBDIR}/features/method_stubs/stub_implementation.feature
${GEM_LIBDIR}/features/method_stubs/to_ary.feature
@@ -32,10 +36,14 @@ ${GEM_LIBDIR}/features/mutating_constants/stub_defined_constant.feature
${GEM_LIBDIR}/features/mutating_constants/stub_undefined_constant.feature
${GEM_LIBDIR}/features/outside_rspec/configuration.feature
${GEM_LIBDIR}/features/outside_rspec/standalone.feature
+${GEM_LIBDIR}/features/spies/spy_partial_mock_method.feature
+${GEM_LIBDIR}/features/spies/spy_pure_mock_method.feature
+${GEM_LIBDIR}/features/spies/spy_unstubbed_method.feature
${GEM_LIBDIR}/features/step_definitions/additional_cli_steps.rb
${GEM_LIBDIR}/features/support/env.rb
+${GEM_LIBDIR}/features/support/rubinius.rb
+${GEM_LIBDIR}/features/test_frameworks/test_unit.feature
${GEM_LIBDIR}/lib/rspec/mocks.rb
-${GEM_LIBDIR}/lib/rspec/mocks/any_instance.rb
${GEM_LIBDIR}/lib/rspec/mocks/any_instance/chain.rb
${GEM_LIBDIR}/lib/rspec/mocks/any_instance/expectation_chain.rb
${GEM_LIBDIR}/lib/rspec/mocks/any_instance/message_chains.rb
@@ -45,24 +53,28 @@ ${GEM_LIBDIR}/lib/rspec/mocks/any_instance/stub_chain_chain.rb
${GEM_LIBDIR}/lib/rspec/mocks/argument_list_matcher.rb
${GEM_LIBDIR}/lib/rspec/mocks/argument_matchers.rb
${GEM_LIBDIR}/lib/rspec/mocks/configuration.rb
+${GEM_LIBDIR}/lib/rspec/mocks/deprecation.rb
${GEM_LIBDIR}/lib/rspec/mocks/error_generator.rb
${GEM_LIBDIR}/lib/rspec/mocks/errors.rb
${GEM_LIBDIR}/lib/rspec/mocks/example_methods.rb
${GEM_LIBDIR}/lib/rspec/mocks/extensions/instance_exec.rb
${GEM_LIBDIR}/lib/rspec/mocks/extensions/marshal.rb
-${GEM_LIBDIR}/lib/rspec/mocks/extensions/psych.rb
${GEM_LIBDIR}/lib/rspec/mocks/framework.rb
${GEM_LIBDIR}/lib/rspec/mocks/instance_method_stasher.rb
+${GEM_LIBDIR}/lib/rspec/mocks/matchers/have_received.rb
+${GEM_LIBDIR}/lib/rspec/mocks/matchers/receive.rb
${GEM_LIBDIR}/lib/rspec/mocks/message_expectation.rb
${GEM_LIBDIR}/lib/rspec/mocks/method_double.rb
-${GEM_LIBDIR}/lib/rspec/mocks/methods.rb
${GEM_LIBDIR}/lib/rspec/mocks/mock.rb
${GEM_LIBDIR}/lib/rspec/mocks/mutate_const.rb
${GEM_LIBDIR}/lib/rspec/mocks/order_group.rb
${GEM_LIBDIR}/lib/rspec/mocks/proxy.rb
-${GEM_LIBDIR}/lib/rspec/mocks/serialization.rb
+${GEM_LIBDIR}/lib/rspec/mocks/proxy_for_nil.rb
${GEM_LIBDIR}/lib/rspec/mocks/space.rb
${GEM_LIBDIR}/lib/rspec/mocks/standalone.rb
+${GEM_LIBDIR}/lib/rspec/mocks/stub_chain.rb
+${GEM_LIBDIR}/lib/rspec/mocks/syntax.rb
+${GEM_LIBDIR}/lib/rspec/mocks/targets.rb
${GEM_LIBDIR}/lib/rspec/mocks/test_double.rb
${GEM_LIBDIR}/lib/rspec/mocks/version.rb
${GEM_LIBDIR}/lib/spec/mocks.rb
@@ -87,10 +99,14 @@ ${GEM_LIBDIR}/spec/rspec/mocks/bug_report_957_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/combining_implementation_instructions_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/configuration_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/double_spec.rb
+${GEM_LIBDIR}/spec/rspec/mocks/extensions/marshal_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/failing_argument_matchers_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/hash_excluding_matcher_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/hash_including_matcher_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/instance_method_stasher_spec.rb
+${GEM_LIBDIR}/spec/rspec/mocks/matchers/have_received_spec.rb
+${GEM_LIBDIR}/spec/rspec/mocks/matchers/receive_spec.rb
+${GEM_LIBDIR}/spec/rspec/mocks/methods_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/mock_ordering_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/mock_space_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/mock_spec.rb
@@ -111,6 +127,7 @@ ${GEM_LIBDIR}/spec/rspec/mocks/stub_chain_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/stub_implementation_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/stub_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/stubbed_message_expectations_spec.rb
+${GEM_LIBDIR}/spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/test_double_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/to_ary_spec.rb
${GEM_LIBDIR}/spec/rspec/mocks/twice_counts_spec.rb
diff --git a/devel/ruby-rspec-mocks/distinfo b/devel/ruby-rspec-mocks/distinfo
index 76764fe55d1..b9bc7c2c30f 100644
--- a/devel/ruby-rspec-mocks/distinfo
+++ b/devel/ruby-rspec-mocks/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.11 2013/06/16 16:25:07 taca Exp $
+$NetBSD: distinfo,v 1.12 2013/09/15 10:15:50 taca Exp $
-SHA1 (rspec-mocks-2.13.1.gem) = d81e5fbbe460654f84e40f3b39b4c91cddea04ae
-RMD160 (rspec-mocks-2.13.1.gem) = 798a6a49cb7ca8c91ff21d123d02efa80d87c83a
-Size (rspec-mocks-2.13.1.gem) = 74752 bytes
+SHA1 (rspec-mocks-2.14.3.gem) = 906e3168d3c7183936b00c338fe04059875692d7
+RMD160 (rspec-mocks-2.14.3.gem) = dad97897e00ce43df95ebfd0a68ebc816cc07179
+Size (rspec-mocks-2.14.3.gem) = 90112 bytes