Skip to content

Commit c1c9395

Browse files
committed
Add tests to also automatically detect regressions for warnings
1 parent 091c8cd commit c1c9395

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

spec/configuration_spec.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,24 @@
183183
expect(config).not_to be_branch_coverage
184184
end
185185
end
186+
187+
describe "#enable_for_subprocesses" do
188+
it "returns false by default" do
189+
expect(config.enable_for_subprocesses).to eq false
190+
end
191+
192+
it "can be set to true" do
193+
config.enable_for_subprocesses true
194+
195+
expect(config.enable_for_subprocesses).to eq true
196+
end
197+
198+
it "can be enabled and then disabled again" do
199+
config.enable_for_subprocesses true
200+
config.enable_for_subprocesses false
201+
202+
expect(config.enable_for_subprocesses).to eq false
203+
end
204+
end
186205
end
187206
end

0 commit comments

Comments
 (0)