Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix automate specs after MulticastLogger changes #17001

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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