Skip to content

Commit

Permalink
Merge pull request #17001 from NickLaMuro/fix-automate-specs-after-mu…
Browse files Browse the repository at this point in the history
…lticast-logger-fallout

Fix automate specs after MulticastLogger changes
(cherry picked from commit 0f50b52)
  • Loading branch information
gmcculloug authored and simaishi committed Feb 14, 2018
1 parent 714e133 commit 04fa2a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/support/workflow_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ def assert_automate_vm_name_lookup(user, vm_name = 'vm_name')
end

def stub_automate_workspace(url, user, *result)
workspace_stub = double
workspace_stub = double("Double for #stub_automate_workspace")
expect(workspace_stub).to receive(:instantiate).with(url, user, nil)
expect(workspace_stub).to receive(:root).and_return(*result)
allow(workspace_stub).to receive(:to_expanded_xml).and_return(*result)
expect(MiqAeEngine::MiqAeWorkspaceRuntime).to receive(:new).and_return(workspace_stub)
end
end
Expand Down

0 comments on commit 04fa2a3

Please sign in to comment.