options_test.rb must be executed in isolation.

f38
Vít Ondruch 8 years ago
parent be022e3642
commit 3526a92c49

@ -3,7 +3,7 @@
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 5.0.1 Version: 5.0.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: An elegant, structured (X)HTML/XML templating engine Summary: An elegant, structured (X)HTML/XML templating engine
License: MIT and WTFPL License: MIT and WTFPL
URL: http://haml.info/ URL: http://haml.info/
@ -69,7 +69,11 @@ tar xzvf %{SOURCE1}
# Get rid of Bundler. # Get rid of Bundler.
sed -i '/bundler/ s/^/#/' test/test_helper.rb sed -i '/bundler/ s/^/#/' test/test_helper.rb
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' # options_test.rb must be executed in isolation in order to prevent load
# order issues.
# https://github.com/haml/haml/issues/943
ruby -Ilib:test -e '(Dir.glob("./test/*_test.rb") - %w[./test/options_test.rb]).each {|f| require f }'
ruby -Ilib:test -e 'require "./test/options_test.rb"'
popd popd
%files %files
@ -97,6 +101,9 @@ popd
%{gem_instdir}/yard %{gem_instdir}/yard
%changelog %changelog
* Wed Jul 19 2017 Vít Ondruch <vondruch@redhat.com> - 5.0.1-2
- options_test.rb must be executed in isolation.
* Tue Jul 18 2017 Vít Ondruch <vondruch@redhat.com> - 5.0.1-1 * Tue Jul 18 2017 Vít Ondruch <vondruch@redhat.com> - 5.0.1-1
- Update to Haml 5.0.1. - Update to Haml 5.0.1.

Loading…
Cancel
Save