Skip to content

Commit

Permalink
adding not
Browse files Browse the repository at this point in the history
  • Loading branch information
rshade committed Apr 11, 2016
1 parent fa0abe3 commit 8cc46fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/unit_test/machine_tag_rl10_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,8 @@
with(hash_including(resource_type: 'instances', tags: ['database:active=true'], match_all: false)).
and_return([resources_stub_fail])

client_stub.tags.should_receive(:by_resource).
with(hash_including(resource_hrefs: ["/api/clouds/6/instances/1234"])).
and_return([resource_tags_stub])
client_stub.tags.should_not_receive(:by_resource).
with(hash_including(resource_hrefs: ["/api/clouds/6/instances/1234"]))

tags = provider.send(:do_query,'database:active=true',{ match_all: false })
tags.should be_a(Array)
Expand Down

0 comments on commit 8cc46fc

Please sign in to comment.