spec/unit/mutant/env_spec.rb in mutant-0.8.19 vs spec/unit/mutant/env_spec.rb in mutant-0.8.20
- old
+ new
@@ -55,11 +55,11 @@
before do
expect(selector).to receive(:call)
.with(mutation_subject)
.and_return(tests)
- allow(Time).to receive_messages(now: Time.at(0))
+ allow(Mutant::Timer).to receive(:now).and_return(2.0, 3.0)
end
context 'when isolation does not raise error' do
let(:test_result) { instance_double(Mutant::Result::Test) }
@@ -89,10 +89,10 @@
let(:test_result) do
Mutant::Result::Test.new(
output: 'test-error',
passed: false,
- runtime: 0.0,
+ runtime: 1.0,
tests: tests
)
end
include_examples 'mutation kill'