Enable thread_order dependent tests

This commit is contained in:
Mamoru TASAKA 2015-08-12 15:59:01 +09:00
parent 7d27b8348a
commit 5ea97bd517

View File

@ -3,7 +3,7 @@
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver}
%global fedorarel 2
%global fedorarel 3
%global gem_name rspec-mocks
@ -26,6 +26,7 @@ BuildRequires: ruby(release)
BuildRequires: rubygems-devel
%if 0%{?need_bootstrap_set} < 1
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(thread_order)
BuildRequires: git
%endif
BuildArch: noarch
@ -65,17 +66,11 @@ rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
%if 0%{?need_bootstrap_set} < 1
%check
pushd %{gem_name}-%{version}
# FIXME
# thread_order not in Fedora yet
mv spec/rspec/mocks/reentrant_mutex_spec.rb{,.omit}
touch spec/rspec/mocks/reentrant_mutex_spec.rb
# library_wide_checks.rb needs UTF-8
LANG=en_US.utf8
ruby -rubygems -Ilib/ -S rspec spec/
mv spec/rspec/mocks/reentrant_mutex_spec.rb{.omit,}
popd
%endif
@ -93,6 +88,9 @@ popd
%{gem_docdir}
%changelog
* Wed Aug 12 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.2-3
- Enable thread_order dependent tests
* Sun Aug 2 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.3.2-2
- Enable tests again