Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
AparnaKarve committed Sep 20, 2018
1 parent d03f754 commit eab7421
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/requests/transformation_mappings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ def href_slug(obj)
post(api_transformation_mapping_url(nil, transformation_mapping), :params => request)

expected = {
"valid_vms" => [a_hash_including("name" => vm.name, "id" => vm.id.to_s, "href" => a_string_including(api_vm_url(nil, vm)))],
"invalid_vms" => [a_hash_including("name" => "bad name")],
"conflict_vms" => []
"valid" => [a_hash_including("name" => vm.name, "id" => vm.id.to_s, "status" => "ok", "reason" => "ok", "cluster" => source_ems.name)],
"invalid" => [a_hash_including("name" => "bad name")],
"conflicted" => []
}
expect(response).to have_http_status(:ok)
expect(response.parsed_body).to include(expected)
Expand Down

0 comments on commit eab7421

Please sign in to comment.