Skip to content

Commit

Permalink
use more complicated expression to test removal of temporary token
Browse files Browse the repository at this point in the history
  • Loading branch information
yrudman committed Apr 4, 2018
1 parent 95106ad commit a199611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/miq_expression/subst_mixin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

describe "#exp_replace_qs_tokens" do
it "removes :token key from passed expression" do
exp = {"=" => {"field" => "Vm-active", "value" => "true"}, :token => 1}
exp = {"and" => [{"=" => {"field" => "Vm-active", "value" => "true"}, :token => 1}, {"=" => {"field" => "Vm-archived", "value" => "true"}, :token => 2}]}
test_obj.exp_replace_qs_tokens(exp, {})
expect(exp).to eq("=" => {"field" => "Vm-active", "value" => "true"})
expect(exp).to eq("and" => [{"=" => {"field" => "Vm-active", "value" => "true"}}, {"=" => {"field" => "Vm-archived", "value" => "true"}}])
end
end
end

0 comments on commit a199611

Please sign in to comment.