spec/lib/flapjack/data/event_spec.rb in flapjack-0.7.20 vs spec/lib/flapjack/data/event_spec.rb in flapjack-0.7.21

- old
+ new

@@ -56,25 +56,25 @@ it "returns a count of pending events" do events_len = 23 mock_redis.should_receive(:llen).with('events').and_return(events_len) - pc = Flapjack::Data::Event.pending_count(:redis => mock_redis) + pc = Flapjack::Data::Event.pending_count('events', :redis => mock_redis) pc.should == events_len end it "creates a notification testing event" do Time.should_receive(:now).and_return(time) - mock_redis.should_receive(:rpush).with('events', /"testing"/ ) + mock_redis.should_receive(:lpush).with('events', /"testing"/ ) Flapjack::Data::Event.test_notifications(entity_name, check, :summary => 'test', :details => 'testing', :redis => mock_redis) end it "creates an acknowledgement event" do Time.should_receive(:now).and_return(time) - mock_redis.should_receive(:rpush).with('events', /"acking"/ ) + mock_redis.should_receive(:lpush).with('events', /"acking"/ ) Flapjack::Data::Event.create_acknowledgement(entity_name, check, :summary => 'acking', :time => time.to_i, :redis => mock_redis) end @@ -96,6 +96,6 @@ it { should_not be_a_test_notifications } it { should_not be_ok } it { should be_a_failure } end -end \ No newline at end of file +end