[rubygem-stomp] Forece rspec 2 tests

stevetraylen stevetraylen at fedoraproject.org
Mon Mar 23 13:05:33 UTC 2015


commit b09970882089c8735a3ff2322547f6fa68b1af2e
Author: Steve Traylen <steve.traylen at cern.ch>
Date:   Mon Mar 23 14:05:08 2015 +0100

    Forece rspec 2 tests

 rubygem-stomp.spec | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/rubygem-stomp.spec b/rubygem-stomp.spec
index 116458d..fbfee1a 100644
--- a/rubygem-stomp.spec
+++ b/rubygem-stomp.spec
@@ -3,7 +3,7 @@
 Summary: Ruby client for the Stomp messaging protocol
 Name: rubygem-%{gem_name}
 Version: 1.3.4
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Development/Languages
 License: ASL 2.0
 URL: http://stomp.codehaus.org/
@@ -14,7 +14,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: ruby(release)
 %endif
 BuildRequires: rubygems-devel
-BuildRequires: rubygem(rspec)
+BuildRequires: rubygem(rspec) < 3
 BuildArch: noarch
 %if 0%{?fc19} || 0%{?fc20} || 0%{?el7}
 Provides: rubygem(%{gem_name}) = %{version}
@@ -64,15 +64,13 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
 rm -rf %{buildroot}
 
 %check
-# Tests currently failing in f22.
-%if 0%{?fc23}
-%else
 pushd %{buildroot}/%{gem_instdir}
-rspec -Ilib spec
-# Rake test requires a stomp server
-# rake test
-popd
+%if 0%{?fc19} || 0%{?fc20} || 0%{?fc21} || 0%{?el7}
+rspec  -Ilib spec
+%else
+rspec2 -Ilib spec
 %endif
+popd
 
 %files
 %dir %{gem_instdir}
@@ -135,6 +133,9 @@ popd
 
 
 %changelog
+* Wed Mar 11 2015 Steve Traylen  <steve.traylen at cern.ch> - 1.3.4-2
+- Force rspec 2 tests.
+
 * Wed Mar 11 2015 Steve Traylen  <steve.traylen at cern.ch> - 1.3.4-1
 - Upstream 1.3.4 release
 


More information about the scm-commits mailing list