Skip to content

Commit c509f4e

Browse files
committed
Merge pull request #29 from hron/fix_spec_for_formatter_legacyapi
Fix specs due to changes in cucumber
2 parents 57302fb + 8121011 commit c509f4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/guard/cucumber/notification_formatter_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
end
3838

3939
context "when failure is in a background step" do
40-
let(:background) { instance_double(Cucumber::Core::Ast::Background, feature: feature) }
40+
let(:background) { instance_double(Cucumber::Formatter::LegacyApi::Ast::Background, feature: feature) }
4141

4242
it "notifies with a valid feature name" do
4343
expect(Guard::Compat::UI).to receive(:notify).with("*step_name1*", hash_including(title: "feature1"))
@@ -47,7 +47,7 @@
4747

4848
# workaround for: https://github.com/cucumber/gherkin/issues/334
4949
context "with a buggy Background implementation" do
50-
let(:background) { instance_double(Cucumber::Core::Ast::Background, feature: nil) }
50+
let(:background) { instance_double(Cucumber::Formatter::LegacyApi::Ast::Background, feature: nil) }
5151

5252
it "correctly gets the feature name" do
5353
expect(Guard::Compat::UI).to receive(:notify).with("*step_name1*", hash_including(title: "feature1"))

0 commit comments

Comments
 (0)