Skip to content

Commit d956b1f

Browse files
committed
Fix spec
1 parent c10731b commit d956b1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openc3/spec/api/limits_api_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ def with_decom_microservice
149149
end
150150

151151
it "complains about non-existent states" do
152-
expect { @api.set_state_color("INST", "HEALTH_STATUS", "GROUND1STATUS", "BLAH", "RED") }.to raise_error(RuntimeError, "State 'BLAH' does not exist")
152+
expect { @api.set_state_color("INST", "HEALTH_STATUS", "GROUND1STATUS", "BLAH", "RED") }.to raise_error(RuntimeError, "State 'BLAH' does not exist for item 'INST HEALTH_STATUS GROUND1STATUS'")
153153
end
154154

155155
it "complains about invalid colors" do
156-
expect { @api.set_state_color("INST", "HEALTH_STATUS", "GROUND1STATUS", "CONNECTED", "PURPLE") }.to raise_error(RuntimeError, "Invalid state color 'PURPLE'")
156+
expect { @api.set_state_color("INST", "HEALTH_STATUS", "GROUND1STATUS", "CONNECTED", "PURPLE") }.to raise_error(RuntimeError, "Invalid state color 'PURPLE'. Must be one of GREEN, YELLOW, RED.")
157157
end
158158

159159
it "changes the color of a state" do

0 commit comments

Comments
 (0)