| |
@@ -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.
|
| |
|
| |
also enabled
cucumber
tests.Scratch-build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=27283213