This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ Feature: Using `run_all_when_everything_filtered`
62
62
"""
63
63
When I run `rspec spec/example_spec.rb --tag some_tag`
64
64
Then the output should contain "1 example, 0 failures"
65
- And the output should contain "Run options: include {:some_tag=>true}"
65
+ And the output should contain in either hash syntax "Run options: include {:some_tag=>true}"
66
66
67
67
Scenario : When the `run_all_when_everything_filtered` option is turned on, all the specs are run when the tag has no matches
68
68
Given a file named "spec/example_spec.rb" with:
@@ -78,5 +78,5 @@ Feature: Using `run_all_when_everything_filtered`
78
78
"""
79
79
When I run `rspec spec/example_spec.rb --tag some_tag`
80
80
Then the output should contain "2 examples, 0 failures"
81
- And the output should contain "All examples were filtered out; ignoring {:some_tag=>true}"
81
+ And the output should contain in either hash syntax "All examples were filtered out; ignoring {:some_tag=>true}"
82
82
Original file line number Diff line number Diff line change 11
11
end
12
12
end
13
13
14
+ Then /^the output should contain in either hash syntax "(.*)"$/ do |string |
15
+ if RUBY_VERSION . to_f > 3.3
16
+ step "the output should contain \" #{ string . gsub ( /:(\w +)=>/ , '\1: ' ) } \" "
17
+ else
18
+ step "the output should contain \" #{ string } \" "
19
+ end
20
+ end
21
+
14
22
Then /^the output should contain all of these:$/ do |table |
15
23
table . raw . flatten . each do |string |
16
24
expect ( all_output ) . to include ( string )
You can’t perform that action at this time.
0 commit comments