Skip to content

Commit

Permalink
Updated spec to get rid of rubocop complains
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed Jun 12, 2017
1 parent 18e4d1d commit 2fd5605
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def category_create_script

it "create service request" do
allow(workspace).to receive(:disable_rbac)
expect_any_instance_of(ServiceTemplate).to receive(:provision_request).with(user, svc_options).and_return(miq_request)
allow(ServiceTemplate).to receive(:find).with(template.id).and_return(template)
expect(template).to receive(:provision_request).with(user, svc_options).and_return(miq_request)

result = miq_ae_service.execute(:create_service_provision_request, svc_template, svc_options)
expect(result).to be_kind_of(MiqAeMethodService::MiqAeServiceMiqRequest)
Expand Down

0 comments on commit 2fd5605

Please sign in to comment.