diff --git a/spec/models/ems_refresh_spec.rb b/spec/models/ems_refresh_spec.rb index f41053e020a..26cb2193620 100644 --- a/spec/models/ems_refresh_spec.rb +++ b/spec/models/ems_refresh_spec.rb @@ -10,6 +10,17 @@ queue_refresh_and_assert_queue_item(target, [target]) end + it "with ManagerRefresh::Target" do + target = ManagerRefresh::Target.load( + :manager_id => @ems.id, + :association => :vms, + :manager_ref => {:ems_ref => "vm_1"}, + :options => {:opt1 => "opt1", :opt2 => "opt2"} + ) + + queue_refresh_and_assert_queue_item(target, [target]) + end + it "with Host" do target = FactoryGirl.create(:host_vmware, :ext_management_system => @ems) queue_refresh_and_assert_queue_item(target, [target])