Execute cucumber test
This commit is contained in:
parent
58604d2c08
commit
f502111f26
@ -3,7 +3,7 @@
|
||||
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
|
||||
%global fullver %{majorver}%{?preminorver}
|
||||
|
||||
%global fedorarel 1
|
||||
%global fedorarel 2
|
||||
|
||||
%global gem_name rspec-mocks
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
Summary: RSpec's 'test double' framework (mocks and stubs)
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: %{majorver}
|
||||
Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}.1
|
||||
Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}
|
||||
|
||||
License: MIT
|
||||
URL: http://github.com/rspec/rspec-mocks
|
||||
@ -26,8 +26,13 @@ Source2: rspec-related-create-full-tarball.sh
|
||||
#BuildRequires: ruby(release)
|
||||
BuildRequires: rubygems-devel
|
||||
%if 0%{?need_bootstrap_set} < 1
|
||||
# rspec
|
||||
BuildRequires: rubygem(rspec)
|
||||
BuildRequires: rubygem(thread_order)
|
||||
# cucumber
|
||||
BuildRequires: rubygem(aruba)
|
||||
BuildRequires: rubygem(cucumber)
|
||||
BuildRequires: rubygem(minitest)
|
||||
BuildRequires: git
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
@ -49,6 +54,10 @@ gem unpack %{SOURCE0}
|
||||
|
||||
%setup -q -D -T -n %{gem_name}-%{version} -b 1
|
||||
|
||||
# Cucumber 7 syntax change
|
||||
sed -i cucumber.yml -e "s|~@wip|'not @wip'|"
|
||||
sed -i features/support/disallow_certain_apis.rb -e "s|~@allow-old-syntax|not @allow-old-syntax|"
|
||||
|
||||
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||
|
||||
%build
|
||||
@ -68,6 +77,8 @@ rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
|
||||
# library_wide_checks.rb needs UTF-8
|
||||
LANG=C.UTF-8
|
||||
ruby -rrubygems -Ilib/ -S rspec spec/
|
||||
export CUCUMBER_PUBLISH_QUIET=true
|
||||
cucumber
|
||||
%endif
|
||||
|
||||
%files
|
||||
@ -86,6 +97,9 @@ ruby -rrubygems -Ilib/ -S rspec spec/
|
||||
%{gem_docdir}
|
||||
|
||||
%changelog
|
||||
* Thu Jan 20 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.2-2
|
||||
- Execute cucumber test
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.2-1.1
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user