spec/lib/flapjack/data/event_spec.rb in flapjack-0.7.27 vs spec/lib/flapjack/data/event_spec.rb in flapjack-0.7.28
- old
+ new
@@ -3,10 +3,10 @@
describe Flapjack::Data::Event do
let(:entity_name) { 'xyz-example.com' }
let(:check) { 'ping' }
- let(:mock_redis) { mock(::Redis) }
+ let(:mock_redis) { double(::Redis) }
let!(:time) { Time.now}
let(:event_data) { {'type' => 'service',
'state' => 'critical',