Skip to content

Commit

Permalink
Merge pull request #17045 from bzwei/v2v_order
Browse files Browse the repository at this point in the history
Add #orderable? as alias method
  • Loading branch information
gmcculloug authored Feb 23, 2018
2 parents 80875c7 + feb5c23 commit 7c7f922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/service_template_transformation_plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions spec/models/service_template_transformation_plan_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7c7f922

Please sign in to comment.