From 471804c1063bc94846be52b896d5af6deafa1c3d Mon Sep 17 00:00:00 2001 From: d-m-u Date: Mon, 10 Aug 2020 08:37:22 -0400 Subject: [PATCH] fix alert definitions specs --- spec/requests/alert_definitions_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/alert_definitions_spec.rb b/spec/requests/alert_definitions_spec.rb index 2fa9858fb2..f4b08f591c 100644 --- a/spec/requests/alert_definitions_spec.rb +++ b/spec/requests/alert_definitions_spec.rb @@ -53,7 +53,7 @@ "id" => alert_definition.id.to_s, "description" => alert_definition.description, "guid" => alert_definition.guid, - "expression" => {"exp" => {"=" => {"field" => "Vm-name", "value" => "foo"}}, "context_type" => nil} + "expression" => {"col_details" => nil, "context_type" => nil, "exp" => {"=" => {"field" => "Vm-name", "value" => "foo"}}, "ruby" => nil} ) end @@ -256,7 +256,7 @@ expect(response).to have_http_status(:ok) expect(response.parsed_body).to include( - "miq_expression" => {"exp" => exp, "context_type" => nil} + "miq_expression" => {"col_details" => nil, "context_type" => nil, "exp" => {"=" => {"field" => "Vm-name", "value" => "foo"}}, "ruby" => nil} ) end