Skip to content

Commit ce45fa6

Browse files
marcotcamatsuda
authored andcommitted
Filter out example using conditional filters
1 parent 99ef976 commit ce45fa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/combine/results_combiner_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@
102102
expect(subject[source_fixture("three.rb")]["lines"]).to eq([nil, 3, 7])
103103
end
104104

105-
it "always returns a Hash object for branches" do
106-
expect(subject[source_fixture("three.rb")]["branches"]).to eq({}) if SimpleCov.branch_coverage_supported?
105+
it "always returns a Hash object for branches", if: SimpleCov.branch_coverage_supported? do
106+
expect(subject[source_fixture("three.rb")]["branches"]).to eq({})
107107
end
108108
end
109109
end

0 commit comments

Comments
 (0)