diff --git a/app/models/service_template_transformation_plan.rb b/app/models/service_template_transformation_plan.rb index 8f385862916..698c80b044b 100644 --- a/app/models/service_template_transformation_plan.rb +++ b/app/models/service_template_transformation_plan.rb @@ -18,6 +18,7 @@ def vm_resources def validate_order true end + alias orderable? validate_order def self.default_provisioning_entry_point(_service_type) '/Transformation/StateMachines/VMTransformation/Transformation' diff --git a/spec/models/service_template_transformation_plan_spec.rb b/spec/models/service_template_transformation_plan_spec.rb index 1715cbce23f..e0fd051dfdd 100644 --- a/spec/models/service_template_transformation_plan_spec.rb +++ b/spec/models/service_template_transformation_plan_spec.rb @@ -12,6 +12,7 @@ describe '#validate_order' do it 'always allows a plan to be ordered' do expect(subject.validate_order).to be_truthy + expect(subject.orderable?).to be_truthy # alias end end