Clearner way to specify minitest 4.x

This commit is contained in:
Mamoru TASAKA 2014-08-14 13:13:29 +09:00
parent 05c41869f9
commit 86ed08030e

View File

@ -3,7 +3,7 @@
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver}
%global fedorarel 3
%global fedorarel 4
%global gem_name rspec-expectations
@ -69,6 +69,8 @@ gem unpack %{SOURCE0}
cd %{gem_name}-%{version}
%patch0 -p2
sed -i -e "s@\(require 'test/unit'\)@gem 'minitest', '~> 4' ;\1@" \
spec/spec_helper.rb
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
gem build %{gem_name}.gemspec
@ -93,7 +95,6 @@ rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.travis.yml,.yardopts}
%check
LANG=en_US.UTF-8
pushd .%{gem_instdir}
export RUBYLIB=$(gem which minitest/parallel_each -a | grep minitest-4 | sed -e 's|/minitest/parallel.*$||')
ruby -rubygems -Ilib/ -S rspec spec/
popd
%endif
@ -117,6 +118,9 @@ popd
%exclude %{gem_instdir}/spec/
%changelog
* Thu Aug 14 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.5-4
- Clearner way to specify minitest 4.x
* Wed Aug 13 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.14.5-3
- Backport temporarily be_truthy matchers and so on