spec/lib/flapjack/gateways/pagerduty_spec.rb in flapjack-0.9.6 vs spec/lib/flapjack/gateways/pagerduty_spec.rb in flapjack-1.0.0rc1
- old
+ new
@@ -180,10 +180,10 @@
expect(Flapjack::RedisPool).to receive(:new).and_return(redis)
fp = Flapjack::Gateways::Pagerduty.new(:config => config, :logger => @logger)
EM.synchrony do
ret = fp.send(:send_pagerduty_event, evt)
- expect(ret).not_to be_nil
+ expect { ret }.not_to be_nil
expect(ret).to eq([200, nil])
EM.stop
end
end