diff --git a/rubygem-aruba.spec b/rubygem-aruba.spec index 250a697..d344049 100644 --- a/rubygem-aruba.spec +++ b/rubygem-aruba.spec @@ -18,7 +18,11 @@ BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(cucumber) >= 1.1.1 BuildRequires: rubygem(childprocess) >= 0.2.0 -BuildRequires: rubygem(rspec) >= 2.7.0 +%if 0%{?fedora} >= 22 +BuildRequires: rubygem(rspec) >= 3 +%else +BuildRequires: rubygem(rspec) +%endif # used in one of the features BuildRequires: bc BuildArch: noarch @@ -42,6 +46,13 @@ Documentation for %{name} %setup -q -c -T %gem_install -n %{SOURCE0} +%if 0%{?fedora} < 23 +pushd .%{gem_instdir}/ +sed -i -e 's|:example|:each|' \ + spec/aruba/api_spec.rb +popd +%endif + %build %install