spec/lib/flapjack/gateways/jsonapi/report_methods_spec.rb in flapjack-1.2.0 vs spec/lib/flapjack/gateways/jsonapi/report_methods_spec.rb in flapjack-1.2.1rc1

- old
+ new

@@ -168,10 +168,11 @@ expect(last_response).to be_not_found end it "should not show the status for a check with a malformed name" do aget "/status_report/checks/SSH" - expect(last_response.status).to eq(500) + expect(last_response.status).to eq(400) + expect(last_response.body).to eq(Flapjack.dump_json({:errors => ['Malformed check ID']})) end it "returns a list of scheduled maintenance periods for an entity" do sched_maint = {:scheduled_maintenances => 'data'} expect(check_presenter).to receive(:scheduled_maintenance).and_return(sched_maint)