From 1ad7eea239440b25369d20d15d9927f595672bea Mon Sep 17 00:00:00 2001 From: Greg McCullough Date: Wed, 12 Dec 2018 17:55:58 -0500 Subject: [PATCH] Fixed spec based on new validations added to ConversionHost model in ManageIQ/manageiq#18277 Fixes failing tests. --- .../Common.class/__methods__/acquiretransformationhost_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/content/automate/ManageIQ/Transformation/Common.class/__methods__/acquiretransformationhost_spec.rb b/spec/content/automate/ManageIQ/Transformation/Common.class/__methods__/acquiretransformationhost_spec.rb index ba2c3c44d..6f466342e 100644 --- a/spec/content/automate/ManageIQ/Transformation/Common.class/__methods__/acquiretransformationhost_spec.rb +++ b/spec/content/automate/ManageIQ/Transformation/Common.class/__methods__/acquiretransformationhost_spec.rb @@ -4,7 +4,8 @@ describe ManageIQ::Automate::Transformation::Common::AcquireTransformationHost do let(:user) { FactoryGirl.create(:user_with_email_and_group) } let(:task) { FactoryGirl.create(:service_template_transformation_plan_task) } - let(:conversion_host) { FactoryGirl.create(:conversion_host) } + let(:vm) { FactoryBot.create(:vm_or_template) } + let(:conversion_host) { FactoryGirl.create(:conversion_host, :resource => vm) } let(:svc_model_user) { MiqAeMethodService::MiqAeServiceUser.find(user.id) } let(:svc_model_task) { MiqAeMethodService::MiqAeServiceServiceTemplateTransformationPlanTask.find(task.id) }