File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 37
37
end
38
38
39
39
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 ) }
41
41
42
42
it "notifies with a valid feature name" do
43
43
expect ( Guard ::Compat ::UI ) . to receive ( :notify ) . with ( "*step_name1*" , hash_including ( title : "feature1" ) )
47
47
48
48
# workaround for: https://github.com/cucumber/gherkin/issues/334
49
49
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 ) }
51
51
52
52
it "correctly gets the feature name" do
53
53
expect ( Guard ::Compat ::UI ) . to receive ( :notify ) . with ( "*step_name1*" , hash_including ( title : "feature1" ) )
You can’t perform that action at this time.
0 commit comments