return skip_rollback to true by default

This commit is contained in:
Anton Chuchkalov 2016-04-20 15:47:20 +03:00
parent 3e832a45d5
commit 1618034ef0
2 changed files with 4 additions and 3 deletions

View File

@ -122,7 +122,8 @@ module Devops
end
def skip_rollback?
launch_options['skip_rollback'] || false
result = launch_options['skip_rollback']
result.nil? ? true : result
end
class << self

View File

@ -79,8 +79,8 @@ RSpec.describe Devops::Model::StackEc2, type: :model do
expect(stack.skip_rollback?).to be true
end
it 'returns false by default' do
expect(described_class.new.skip_rollback?).to be false
it 'returns true by default' do
expect(described_class.new.skip_rollback?).to be true
end
end