specs/unit/monitoring_spec.rb in drone-0.0.3 vs specs/unit/monitoring_spec.rb in drone-1.0.1
- old
+ new
@@ -91,32 +91,32 @@
end
should 'time call with no args' do
Drone::Metrics::Timer.any_instance.expects(:update).with{|delay|
- delay.should.be.close?(0, 0.001)
+ delay.should.be.close?(0, 0.1)
true
}
ret = @obj.a_method_without_args()
ret.should == 42
done
end
should 'time call with args' do
Drone::Metrics::Timer.any_instance.expects(:update).with{|delay|
- delay.should.be.close?(0, 0.001)
+ delay.should.be.close?(0, 0.1)
true
}
ret = @obj.method_with_args(2, 4)
ret.should == 6
done
end
should 'time call with a block' do
Drone::Metrics::Timer.any_instance.expects(:update).with{|delay|
- delay.should.be.close?(0, 0.001)
+ delay.should.be.close?(0, 0.1)
true
}
ret = @obj.method_with_block(){ 42 }
ret.should == 42