epel9
Vít Ondruch 8 years ago
parent b1e87c523a
commit 3d962e17d4

@ -0,0 +1,23 @@
From 25d2ca520129e25cf6c033f9e7a84a7e3f582de0 Mon Sep 17 00:00:00 2001
From: Matt Wynne <matt@mattwynne.net>
Date: Sat, 2 Jul 2016 22:06:51 +0100
Subject: [PATCH] Fix brittle spec
---
spec/cucumber/formatter/html_spec.rb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/spec/cucumber/formatter/html_spec.rb b/spec/cucumber/formatter/html_spec.rb
index 3c9554f..733c79f 100644
--- a/spec/cucumber/formatter/html_spec.rb
+++ b/spec/cucumber/formatter/html_spec.rb
@@ -31,8 +31,7 @@ module Formatter
describe "when writing the report to a file" do
before(:each) do
- allow(@out).to receive(:respond_to?).with(:path, false).and_return(true)
- expect(@out).to receive(:respond_to?).with(:path).and_return(true)
+ allow(@out).to receive(:respond_to?).with(:path).and_return(true)
expect(@out).to receive(:path).and_return('out/file.html')
run_defined_feature
@doc = Nokogiri.HTML(@out.string)

@ -4,12 +4,15 @@
Name: rubygem-%{gem_name}
Version: 2.3.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Tool to execute plain-text documents as functional tests
Group: Development/Languages
License: MIT
URL: http://cukes.info
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Fix test failures.
# https://github.com/cucumber/cucumber-ruby/commit/25d2ca520129e25cf6c033f9e7a84a7e3f582de0
Patch0: cucumber-3.0.0.pre.1-Fix-brittle-spec.patch
Requires: js-jquery1
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
@ -48,6 +51,10 @@ Documentation for %{name}.
%setup -q -c -T
%gem_install -n %{SOURCE0}
pushd .%{gem_instdir}
%patch0 -p1
popd
%build
@ -113,6 +120,9 @@ popd
%{gem_instdir}/spec
%changelog
* Thu Nov 24 2016 Vít Ondruch <vondruch@redhat.com> - 2.3.3-2
- Fix FTBFS.
* Tue Apr 05 2016 Vít Ondruch <vondruch@redhat.com> - 2.3.3-1
- Update to Cucumber 2.3.3.

Loading…
Cancel
Save