spec/lib/flapjack/gateways/web_spec.rb in flapjack-0.7.13 vs spec/lib/flapjack/gateways/web_spec.rb in flapjack-0.7.14

- old
+ new

@@ -65,11 +65,11 @@ # TODO add data, test that pages contain representations of it # (for the methods that access redis directly) it "shows a page listing all checks" do - redis.should_receive(:keys).with('*:*:states').and_return(["#{entity_name}:#{check}:states"]) + redis.should_receive(:keys).with('*:*:states').and_return(["#{entity_name}:#{check}"]) expect_check_stats expect_entity_check_status(entity_check) @@ -82,11 +82,11 @@ get '/checks_all' last_response.should be_ok end it "shows a page listing failing checks" do - redis.should_receive(:zrange).with('failed_checks', 0, -1).and_return(["#{entity_name}:#{check}:states"]) + redis.should_receive(:zrange).with('failed_checks', 0, -1).and_return(["#{entity_name}:#{check}"]) expect_check_stats expect_entity_check_status(entity_check) @@ -99,10 +99,10 @@ last_response.should be_ok end it "shows a page listing flapjack statistics" do redis.should_receive(:keys).with('check:*').and_return([]) - redis.should_receive(:zrange).with('failed_checks', 0, -1).and_return(["#{entity_name}:#{check}:states"]) + redis.should_receive(:zrange).with('failed_checks', 0, -1).and_return(["#{entity_name}:#{check}"]) expect_stats expect_check_stats expect_entity_stats get '/self_stats'