#1 Update to Capybara 3.1.0
Merged 5 years ago by pvalena. Opened 5 years ago by pvalena.
rpms/ pvalena/rubygem-capybara rebase  into  master

file modified
+21 -12
@@ -1,26 +1,27 @@ 

  %global gem_name capybara

  

  Name: rubygem-%{gem_name}

- Version: 2.14.3

- Release: 4%{?dist}

+ Version: 3.1.0

+ Release: 1%{?dist}

  Summary: Capybara aims to simplify the process of integration testing Rack applications

  License: MIT

  URL: https://github.com/teamcapybara/capybara

  Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

- # Fix compatibility with recent rack-test.

- # https://github.com/teamcapybara/capybara/commit/95a297ebef9899887ecf396a381e586ba9f611c3

- Patch0: rubygem-capybara-2.17.0-Fix-compatability-with-rack-test-0.7.1.patch

+ # git clone https://github.com/teamcapybara/capybara.git && cd capybara

+ # git checkout 3.1.0 && tar czvf capybara-3.1.0-tests.tgz features/

+ Source1: %{gem_name}-%{version}-tests.tgz

+ 

  BuildRequires: rubygem(selenium-webdriver)

  BuildRequires: rubygem(sinatra)

  BuildRequires: rubygem(rspec)

  BuildRequires: rubygem(launchy)

  BuildRequires: rubygem(minitest)

  BuildRequires: rubygem(puma)

- BuildRequires: rubygem(pry)

  BuildRequires: rubygem(nokogiri)

  BuildRequires: rubygem(xpath)

  BuildRequires: rubygem(rack-test)

- BuildRequires: rubygem(mime-types)

+ BuildRequires: rubygem(mini_mime)

+ BuildRequires: rubygem(cucumber)

  BuildRequires: ruby(release)

  BuildRequires: rubygems-devel

  BuildRequires: ruby
@@ -44,7 +45,6 @@ 

  %gem_install -n %{SOURCE0}

  

  pushd .%{gem_instdir}

- %patch0 -p1

  popd

  

  %build
@@ -56,14 +56,20 @@ 

  # Run the test suite

  %check

  pushd .%{gem_instdir}

+ # Move the tests into place

+ tar xzvf %{SOURCE1}

  

- # Disable test that needs firefox

- sed -i "/^  describe '.register_server' do$/,/^  end$/ s/^/#/" spec/capybara_spec.rb

+ # it "should support SSL": Puma Timeouts, instead of EOFing on http connection

+ sed -i '/end.to raise_error(EOFError)/ s/EOFError/Net::ReadTimeout/' \

+   spec/server_spec.rb

  

  rspec spec

  

- # TODO: There is integration test suite available upstream.

- #cucumber

+ # bundler is not really needed

+ sed -i "/^require 'bundler/ s/^/#/g" \

+   features/support/env.rb

+ 

+ cucumber

  popd

  

  %files
@@ -81,6 +87,9 @@ 

  %{gem_instdir}/spec

  

  %changelog

+ * Mon May 14 2018 Pavel Valena <pvalena@redhat.com> - 3.1.0-1

+ - Update to Capybara 3.1.0.

+ 

  * Fri Mar 02 2018 Vít Ondruch <vondruch@redhat.com> - 2.14.3-4

  - Fix compatibility with recent rack-test.

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (capybara-2.14.3.gem) = e5a9334cb25a0456a118565ee10e0b73efc678133e10c7b921ba8facde97a747426fbe9c0555e70967837a3037de57ea25e8b6692a8fe186d568ea8a214178d4

+ SHA512 (capybara-3.1.0.gem) = 64c7a22eb8d566b245084e7b95d79dec2c72162e003418c0367a46e1072ad83569e97702f61f9a87f996160a62df3a653543d33878c6d3a46ebc2c286fcfbfd7

rebased onto 3bc86b7

5 years ago

Pull-Request has been merged by pvalena

5 years ago
Metadata