%global gem_name rails-controller-testing Name: rubygem-%{gem_name} Version: 1.0.5 Release: 5%{?dist} Summary: Extracting `assigns` and `assert_template` from ActionDispatch License: MIT URL: https://github.com/rails/rails-controller-testing Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # https://github.com/rails/rails-controller-testing/pull/65 Patch0: %{name}-rails6.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.2.2 BuildRequires: rubygem(railties) >= 5.0.1 #BuildRequires: rubygem(sqlite3) BuildArch: noarch %description This gem brings back assigns to your controller tests as well as assert_template to both controller and integration tests. %package doc Summary: Documentation for %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %patch0 -p1 %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # kill the bundler sed -i '/^Bundler/ s/^/#/' test/dummy/config/application.rb ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %license %{gem_instdir}/LICENSE %dir %{gem_instdir}/ %{gem_libdir}/ %{gem_spec} %exclude %{gem_cache} %files doc %doc %{gem_docdir}/ %doc %{gem_instdir}/README.md %{gem_instdir}/test/ %{gem_instdir}/Rakefile %changelog * Fri Jan 21 2022 Fedora Release Engineering - 1.0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 29 2021 František Dvořák - 1.0.5-4 - Support rails 6 in tests * Fri Jul 23 2021 Fedora Release Engineering - 1.0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Aug 20 2020 Vít Ondruch - 1.0.5-1 - Update to rails-controller-testing 1.0.5. Resolves: rhbz#1850058. * Wed Jul 29 2020 Fedora Release Engineering - 1.0.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jul 19 2017 František Dvořák - 1.0.2-1 - Update to 1.0.2 (#1451740) * Sat Feb 11 2017 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Oct 28 2016 František Dvořák - 1.0.1-1 - Update to 1.0.1 (#1366430) - Pull request #25 applied * Mon Aug 08 2016 František Dvořák - 0.1.1-2 - Pull request to include LICENSE file in the gem - Keep the tests in -doc subpackage * Thu Jul 28 2016 František Dvořák - 0.1.1-1 - Initial package