Skip to content

Commit e0c5fd1

Browse files
committed
reformat and reformulate some cukes
1 parent 10c1dff commit e0c5fd1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

features/maximum_coverage_drop.feature

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Feature:
8888
}
8989
}
9090
"""
91+
9192
Scenario: test failures do not update the resultset
9293
Given SimpleCov for RSpec is configured with:
9394
"""
@@ -139,7 +140,8 @@ Feature:
139140
}
140141
}
141142
"""
142-
Scenario: When the previous last_run file has covered_percent
143+
144+
Scenario: When the previous last_run file has legacy covered_percent it still works
143145
Given SimpleCov for Test/Unit is configured with:
144146
"""
145147
require 'simplecov'
@@ -169,7 +171,7 @@ Feature:
169171
}
170172
"""
171173

172-
Scenario: When the previous last_run file has covered_percent does not update resultset
174+
Scenario: When the previous last_run file has covered_percent and we fail does not update it
173175
Given SimpleCov for RSpec is configured with:
174176
"""
175177
require 'simplecov'
@@ -257,7 +259,7 @@ Feature:
257259
{
258260
"result": {
259261
"line": 100.0,
260-
"branch": 100.0
262+
"branch": 100.0
261263
}
262264
}
263265
"""
@@ -324,8 +326,8 @@ Feature:
324326
SimpleCov.start do
325327
add_filter 'test.rb'
326328
enable_coverage :branch
327-
primary_coverage :branch
328-
maximum_coverage_drop line: 0, branch: 0
329+
primary_coverage :branch
330+
maximum_coverage_drop line: 0, branch: 0
329331
end
330332
"""
331333
And a file named "lib/faked_project/missed.rb" with:
@@ -353,7 +355,7 @@ Feature:
353355
{
354356
"result": {
355357
"line": 100.0,
356-
"branch": 100.0
358+
"branch": 100.0
357359
}
358360
}
359361
"""

0 commit comments

Comments
 (0)