summaryrefslogtreecommitdiff
path: root/devel/ruby-rspec-mocks
diff options
context:
space:
mode:
authortaca <taca>2015-06-12 23:59:06 +0000
committertaca <taca>2015-06-12 23:59:06 +0000
commite55757cbf936dfa2fbfd5ce3263bd063e2284e80 (patch)
tree2ba61ff84267dffc0c39bf0499b22c2175302f3b /devel/ruby-rspec-mocks
parentfc850b140dc603d709c9a0f2ccbba421fb34796c (diff)
downloadpkgsrc-e55757cbf936dfa2fbfd5ce3263bd063e2284e80.tar.gz
Update ruby-rspec-mocks to 3.3.0.
### 3.3.0 / 2015-06-12 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.1...v3.3.0) Enhancements: * 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. (Maurcio Linhares, #960) * Silence whitespace-only diffs. (Myron Marston, #969)
Diffstat (limited to 'devel/ruby-rspec-mocks')
-rw-r--r--devel/ruby-rspec-mocks/Makefile6
-rw-r--r--devel/ruby-rspec-mocks/PLIST3
-rw-r--r--devel/ruby-rspec-mocks/distinfo8
3 files changed, 9 insertions, 8 deletions
diff --git a/devel/ruby-rspec-mocks/Makefile b/devel/ruby-rspec-mocks/Makefile
index b8acc109f06..5d975d115a5 100644
--- a/devel/ruby-rspec-mocks/Makefile
+++ b/devel/ruby-rspec-mocks/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.16 2015/03/13 13:46:44 taca Exp $
+# $NetBSD: Makefile,v 1.17 2015/06/12 23:59:06 taca Exp $
-DISTNAME= rspec-mocks-3.2.1
+DISTNAME= rspec-mocks-3.3.0
CATEGORIES= devel
MAINTAINER= pkgsrc-users@NetBSD.org
@@ -8,7 +8,7 @@ HOMEPAGE= http://relishapp.com/rspec
COMMENT= This is test-double framework for rspec
LICENSE= mit
-DEPENDS+= ${RUBY_PKGPREFIX}-rspec-support>=3.2.0<3.3:../../devel/ruby-rspec-support
+DEPENDS+= ${RUBY_PKGPREFIX}-rspec-support>=3.3.0<3.4:../../devel/ruby-rspec-support
DEPENDS+= ${RUBY_PKGPREFIX}-diff-lcs<2:../../textproc/ruby-diff-lcs
.include "../../lang/ruby/gem.mk"
diff --git a/devel/ruby-rspec-mocks/PLIST b/devel/ruby-rspec-mocks/PLIST
index 438f777af0d..0ae12d6f7a1 100644
--- a/devel/ruby-rspec-mocks/PLIST
+++ b/devel/ruby-rspec-mocks/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2015/02/02 14:22:29 taca Exp $
+@comment $NetBSD: PLIST,v 1.12 2015/06/12 23:59:06 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/.document
${GEM_LIBDIR}/.yardopts
@@ -8,6 +8,7 @@ ${GEM_LIBDIR}/README.md
${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/error_generator.rb
${GEM_LIBDIR}/lib/rspec/mocks/any_instance/expect_chain_chain.rb
${GEM_LIBDIR}/lib/rspec/mocks/any_instance/expectation_chain.rb
${GEM_LIBDIR}/lib/rspec/mocks/any_instance/message_chains.rb
diff --git a/devel/ruby-rspec-mocks/distinfo b/devel/ruby-rspec-mocks/distinfo
index 6a487da4e5c..faabcbdad36 100644
--- a/devel/ruby-rspec-mocks/distinfo
+++ b/devel/ruby-rspec-mocks/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.16 2015/03/13 13:46:44 taca Exp $
+$NetBSD: distinfo,v 1.17 2015/06/12 23:59:06 taca Exp $
-SHA1 (rspec-mocks-3.2.1.gem) = 1df735039bb483fd16b52d6d715220424c5d9dad
-RMD160 (rspec-mocks-3.2.1.gem) = c0c0766fcc077664baea07f9dfb72c37fd4fb7eb
-Size (rspec-mocks-3.2.1.gem) = 71168 bytes
+SHA1 (rspec-mocks-3.3.0.gem) = 484389dcd8ff78ecb4dd8f9663fbf692345e90d9
+RMD160 (rspec-mocks-3.3.0.gem) = 392ca7368096ed0e142a89094b01259055f60464
+Size (rspec-mocks-3.3.0.gem) = 73216 bytes