Skip to content

Commit

Permalink
Align to the latest rubocop changes
Browse files Browse the repository at this point in the history
Fix #13
  • Loading branch information
SergK committed Oct 21, 2017
1 parent bc74c4d commit d7aaca4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions spec/acceptance/class_spec.rb
Expand Up @@ -3,7 +3,7 @@
describe 'tfenv class' do
context 'default class inclusion' do
it 'should work with no errors' do
pp = <<-EOS
pp = <<-PP
$packages = [
'git',
'unzip'
Expand All @@ -14,7 +14,7 @@
}
class { '::tfenv': }
EOS
PP
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
Expand All @@ -36,15 +36,15 @@ class { '::tfenv': }
it 'should work with no errors' do
shell('rm -rf /opt/tfenv')
shell('rm -rf /usr/local/bin/t*')
pp = <<-EOS
pp = <<-PP
class { '::tfenv':
manage_user => true,
manage_group => false,
tfenv_user => jenkins,
tfenv_group => root,
}
EOS
PP

# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down Expand Up @@ -90,11 +90,11 @@ class { '::tfenv':
it 'should work with no errors' do
shell('rm -rf /opt/tfenv')
shell('rm -rf /usr/local/bin/t*')
pp = <<-EOS
pp = <<-PP
class { '::tfenv':
default_terraform_version => '0.9.11'
}
EOS
PP

# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/terraform_spec.rb
Expand Up @@ -4,7 +4,7 @@
terraform_versions = %w[0.9.10 0.9.9 0.9.8 0.9.7]
context 'default terraform config' do
it 'should work with no errors' do
pp = <<-EOS
pp = <<-PP
class { '::tfenv':
install_dir => '/opt/tfenv2'
}
Expand All @@ -13,7 +13,7 @@ class { '::tfenv':
::tfenv::terraform { $terraform_versions: }
EOS
PP
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
Expand Down

0 comments on commit d7aaca4

Please sign in to comment.