From feb5c234f38848b7f6ea55c73b8537bd32ed5521 Mon Sep 17 00:00:00 2001 From: Bill Wei Date: Fri, 23 Feb 2018 14:05:30 -0500 Subject: [PATCH] Add #orderable? as alias method --- app/models/service_template_transformation_plan.rb | 1 + spec/models/service_template_transformation_plan_spec.rb | 1 + 2 files changed, 2 insertions(+) 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