@@ -39,66 +39,56 @@ Feature: `--tag` option
39
39
40
40
Scenario : Filter examples with a simple tag
41
41
When I run `rspec . --tag focus`
42
- Then the output should contain "include {: focus=> true}"
42
+ Then the output should print the included tags { focus: true}
43
43
And the examples should all pass
44
44
45
45
Scenario : Filter examples with a simple tag and @
46
46
When I run `rspec . --tag @focus`
47
- Then the output should contain "include {: focus=> true}"
47
+ Then the output should print the included tags { focus: true}
48
48
Then the examples should all pass
49
49
50
50
Scenario : Filter examples with a `name:value` tag
51
51
When I run `rspec . --tag type:special`
52
- Then the output should contain:
53
- """
54
- include {:type=>"special"}
55
- """
52
+ Then the output should print the included tags {type: "special" }
56
53
And the output should contain "2 examples"
57
54
And the examples should all pass
58
55
59
56
Scenario : Filter examples with a `name:value` tag and @
60
57
When I run `rspec . --tag @type:special`
61
- Then the output should contain:
62
- """
63
- include {:type=>"special"}
64
- """
58
+ Then the output should print the included tags {type: "special" }
65
59
And the examples should all pass
66
60
67
61
Scenario : Exclude examples with a simple tag
68
62
When I run `rspec . --tag ~skip`
69
- Then the output should contain "exclude {: skip=> true}"
63
+ Then the output should print the excluded tags { skip: true}
70
64
Then the examples should all pass
71
65
72
66
Scenario : Exclude examples with a simple tag and @
73
67
When I run `rspec . --tag ~@skip`
74
- Then the output should contain "exclude {: skip=> true}"
68
+ Then the output should print the excluded tags { skip: true}
75
69
Then the examples should all pass
76
70
77
71
Scenario : Exclude examples with a `name:value` tag
78
72
When I run `rspec . --tag ~speed:slow`
79
- Then the output should contain:
80
- """
81
- exclude {:speed=>"slow"}
82
- """
73
+ Then the output should print the excluded tags {speed: "slow" }
83
74
Then the examples should all pass
84
75
85
76
Scenario : Exclude examples with a `name:value` tag and @
86
77
When I run `rspec . --tag ~@speed:slow`
87
- Then the output should contain:
88
- """
89
- exclude {:speed=>"slow"}
90
- """
78
+ Then the output should print the excluded tags {speed: "slow" }
91
79
Then the examples should all pass
92
80
93
81
Scenario : Filter examples with a simple tag, exclude examples with another tag
94
82
When I run `rspec . --tag focus --tag ~skip`
95
- Then the output should contain "include {: focus=> true}"
96
- And the output should contain "exclude {: skip=> true}"
83
+ Then the output should print the included tags { focus: true}
84
+ And the output should print the excluded tags { skip: true}
97
85
And the examples should all pass
98
86
99
87
Scenario : Exclude examples with multiple tags
100
88
When I run `rspec . --tag ~skip --tag ~speed:slow`
101
89
Then the output should contain one of the following:
102
90
| exclude {:skip =>true , :speed =>"slow "} |
103
91
| exclude {:speed =>"slow ", :skip =>true } |
92
+ | exclude {skip : true , speed : "slow "} |
93
+ | exclude {speed : "slow ", skip : true } |
104
94
Then the examples should all pass
0 commit comments