Update to 1.2.0.

f38
Pavel Valena 7 years ago
parent 5e0a62b698
commit 76eec274a5

1
.gitignore vendored

@ -1 +1,2 @@
/rspec-its-1.1.0.gem /rspec-its-1.1.0.gem
/rspec-its-1.2.0.gem

@ -0,0 +1,33 @@
From e28d273df0c75a16278bd959d46c6489b035860e Mon Sep 17 00:00:00 2001
From: Pavel Valena <pvalena@redhat.com>
Date: Tue, 12 Sep 2017 23:19:25 +0200
Subject: [PATCH] Fixnum to integer
---
spec/rspec/its_spec.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/spec/rspec/its_spec.rb b/spec/rspec/its_spec.rb
index 91eed5f..83788f6 100644
--- a/spec/rspec/its_spec.rb
+++ b/spec/rspec/its_spec.rb
@@ -55,7 +55,7 @@ module RSpec
end
its("name") { should eq("John") }
its("name.size") { should eq(4) }
- its("name.size.class") { should eq(Fixnum) }
+ its("name.size.class") { should eq(Integer) }
context "using should_not" do
its("name") { should_not eq("Paul") }
@@ -86,7 +86,7 @@ module RSpec
end
its([:a]) { should eq("Symbol: a") }
its(['a']) { should eq("String: a") }
- its([:b, 'c', 4]) { should eq("Symbol: b; String: c; Fixnum: 4") }
+ its([:b, 'c', 4]) { should eq("Symbol: b; String: c; Integer: 4") }
its(:name) { should eq("George") }
context "when referring to an attribute that doesn't exist" do
context "it raises an error" do
--
1.8.3.1

@ -1,13 +1,18 @@
%global gem_name rspec-its %global gem_name rspec-its
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 1.1.0 Version: 1.2.0
Release: 5%{?dist} Release: 1%{?dist}
Summary: Provides "its" method formally part of rspec-core Summary: Provides "its" method formerly part of rspec-core
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: https://github.com/rspec/rspec-its URL: https://github.com/rspec/rspec-its
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Fix Ruby 2.4 compatibility
# https://github.com/rspec/rspec-its/pull/45
Patch0: rubygem-rspec-its-1.2.0-Fix-Ruby-2.4-compatibility.patch
%if 0%{?el7} %if 0%{?el7}
Requires: ruby(release) Requires: ruby(release)
Requires: ruby(rubygems) Requires: ruby(rubygems)
@ -69,6 +74,7 @@ cp -a .%{gem_dir}/* \
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
cat %{PATCH0} | patch -p1 -F 0
rspec -Ilib spec rspec -Ilib spec
# cucumber tests are non-functional during RPM build # cucumber tests are non-functional during RPM build
#cucumber -Ilib features/*.feature #cucumber -Ilib features/*.feature
@ -93,6 +99,9 @@ popd
%changelog %changelog
* Tue Sep 12 2017 Pavel Valena <pvalena@redhat.com> - 1.2.0-1
- Update to 1.2.0.
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5 * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

@ -1 +1 @@
7e355caebff9a7f3cecc45096740d9f6 rspec-its-1.1.0.gem SHA512 (rspec-its-1.2.0.gem) = 6b390f92654f8e6482f0da30d4e721ee127f628eb305268e474d4c9fb14fca1d0fb8922cabc9a8c1372976b5a52349c5a5a774e3026f32d8050c5aea2bc9ccae

Loading…
Cancel
Save