diff --git a/rubygem-gherkin.spec b/rubygem-gherkin.spec index cb2e780..a02d0a7 100644 --- a/rubygem-gherkin.spec +++ b/rubygem-gherkin.spec @@ -1,12 +1,12 @@ %global gem_name gherkin # %%check section needs cucumber, however cucumber depends on gherkin. -%{!?need_bootstrap: %global need_bootstrap 1} +%{!?need_bootstrap: %global need_bootstrap 0} Summary: Fast Gherkin lexer/parser Name: rubygem-%{gem_name} Version: 2.11.6 -Release: 1.1%{?dist} +Release: 2%{?dist} Group: Development/Languages License: MIT URL: http://github.com/cucumber/gherkin @@ -88,11 +88,14 @@ sed -i '7,8d' features/support/env.rb sed -i '7,8d' spec/spec_helper.rb # link the cucumber here for two features ln -s %{gem_dir}/gems/cucumber-`cucumber --version`/ ../cucumber +# There is some encoding error runnign test suite with Ruby 2.0 in both, +# Cucumber and RSpec test suites: +# https://github.com/cucumber/gherkin/issues/232 # run cucumber features - 16 failed because they test fallback ruby lexers # but these are not installed by default (even if using normal gem install) -cucumber | grep '16 failed' +LANG=en_US.utf8 cucumber | grep '16 failed' # run specs, 93 fail because of the reason mentioned above -rspec spec | grep '280 examples, 93 failures' +LANG=en_US.utf8 rspec spec | grep '280 examples, 93 failures' popd %endif