You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
988 B
24 lines
988 B
8 years ago
|
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)
|