Backport temporarily be_truthy matchers and so on

This commit is contained in:
Mamoru TASAKA 2014-08-13 16:41:12 +09:00
parent 4246ab562a
commit 05c41869f9
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,13 @@
--- 2.14.5/TMP/lib/rspec/matchers.rb.be_truthy 1970-01-01 09:00:00.000000000 +0900
+++ 2.14.5/TMP/lib/rspec/matchers.rb 2014-08-13 16:30:56.000000000 +0900
@@ -198,6 +198,10 @@
BuiltIn::BeNil.new
end
+ alias_method :be_truthy, :be_true
+ alias_method :be_falsey, :be_false
+ alias_method :be_falsy, :be_falsey
+
# @example
# expect(actual).to be_true
# expect(actual).to be_false

View File

@ -3,7 +3,7 @@
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver}
%global fedorarel 2
%global fedorarel 3
%global gem_name rspec-expectations
@ -31,6 +31,8 @@ Group: Development/Languages
License: MIT
URL: http://github.com/rspec/rspec-expectations
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
# Backport temporarily be_truthy matchers and so on
Patch0: rubygem-rspec-expectations-2.14.5-be_truthy-alias.patch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
@ -65,6 +67,9 @@ pushd tmpunpackdir
gem unpack %{SOURCE0}
cd %{gem_name}-%{version}
%patch0 -p2
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
gem build %{gem_name}.gemspec
mv %{gem_name}-%{version}.gem $TOPDIR
@ -112,6 +117,9 @@ popd
%exclude %{gem_instdir}/spec/
%changelog
* Wed Aug 13 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.5-3
- Backport temporarily be_truthy matchers and so on
* Thu Jun 26 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.5-2
- Force to use minitest 4.x, 5.x is too dangerous now