From cd23004672beec358aeff32fc2187adcd3f8b0b0 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Aug 11 2020 16:31:42 +0000 Subject: Rebuild due to tests fixup. --- diff --git a/rubygem-actionpack.spec b/rubygem-actionpack.spec index a8c93bd..d469654 100644 --- a/rubygem-actionpack.spec +++ b/rubygem-actionpack.spec @@ -7,7 +7,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 6.0.3.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Web-flow and rendering framework putting the VC in MVC (part of Rails) License: MIT URL: http://rubyonrails.org @@ -22,6 +22,11 @@ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # git clone http://github.com/rails/rails.git --no-checkout # cd rails && git archive -v -o rails-6.0.3.1-tools.txz v6.0.3.1 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz +# IO console tests need TTY to run +# https://github.com/rails/rails/issues/40020 +# https://github.com/rails/rails/pull/36937/ +Patch0: rubygem-actionpack-Allow-tests-to-run-without-a-TTY.patch +Patch1: rubygem-actionpack-Allow-tests-to-run-without-a-TTY-tests.patch # Let's keep Requires and BuildRequires sorted alphabeticaly BuildRequires: ruby(release) @@ -58,6 +63,8 @@ Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2 +%patch0 -p2 + %build gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec %gem_install @@ -72,10 +79,16 @@ cp -a .%{gem_dir}/* \ %check pushd .%{gem_instdir} ln -s %{_builddir}/tools .. -# Move the tests into place -mv %{_builddir}/test . +# Copy the tests into place +cp -a %{_builddir}/test . + +cat %{PATCH1} | patch -p2 -F 0 -mv test/activerecord/controller_runtime_test.rb{,.disable} +# TODO: relative paths to fixtures are not resolved properly +for tname in 'rendering a relative path with dot' 'rendering a relative path'; do + sed -i "/^\s* test \"$tname\" do/ a \ skip" \ + test/controller/new_base/render_file_test.rb +done # Tests need to run in isolation find test -type f -name '*_test.rb' -print0 | \ @@ -98,7 +111,7 @@ popd %doc %{gem_instdir}/README.rdoc %changelog -* Mon Aug 03 08:06:29 GMT 2020 Pavel Valena - 1:6.0.3.1-1 +* Mon Aug 03 08:06:29 GMT 2020 Pavel Valena - 1:6.0.3.1-2 - Update to ActionPack 6.0.3.1. Resolves: rhbz#1742790