diff --git a/rubygem-cucumber-core.spec b/rubygem-cucumber-core.spec index eec8f78..1a96250 100644 --- a/rubygem-cucumber-core.spec +++ b/rubygem-cucumber-core.spec @@ -3,7 +3,7 @@ Name: rubygem-%{gem_name} Version: 1.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Core library for the Cucumber BDD app Group: Development/Languages License: MIT @@ -51,11 +51,15 @@ cp -a .%{gem_dir}/* \ %check pushd .%{gem_instdir} -# unindent is not available in Fedora => avoid the requires and expect some -# errors. -grep -Rl unindent spec | xargs sed -i "/require 'unindent'/ s/^/#/" - -LANG=C.UTF-8 rspec spec | grep '317 examples, 14 failures' +# unindent is not available in Fedora => avoid the requires. +for file in $(grep -Rl unindent spec); do + sed -i "/require 'unindent'/ s/^/#/" "${file}" + sed -i '/^ *expect.*unindent$/ i \pending' "${file}" +done +sed -i '/^ *expect_tag_excess/ i \pending' \ + spec/cucumber/core_spec.rb + +LANG=C.UTF-8 rspec spec popd %files @@ -78,6 +82,9 @@ popd %{gem_instdir}/spec %changelog +* Thu Feb 02 2017 Jun Aruga - 1.5.0-2 +- Improve tests. + * Fri Jan 20 2017 Vít Ondruch - 1.5.0-1 - Update to cucumber-core 1.5.0.