Skip to content

Commit

Permalink
rubocop: autofixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Apr 15, 2017
1 parent 5cb39f9 commit f4f1dec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/defines/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
describe 'yum::config' do
context 'with no parameters' do
let(:title) { 'assumeyes' }

it { is_expected.to raise_error(Puppet::PreformattedError, %r{expects a value for parameter 'ensure'}) }
end

Expand Down
1 change: 1 addition & 0 deletions spec/defines/gpgkey_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
describe 'yum::gpgkey' do
context 'with no parameters' do
let(:title) { '/test-key' }

it { is_expected.to raise_error(Puppet::PreformattedError, %r{Missing params: \$content or \$source must be specified}) }
end

Expand Down
1 change: 1 addition & 0 deletions spec/defines/group_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
describe 'yum::group' do
context 'with no parameters' do
let(:title) { 'Core' }

it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_exec("yum-groupinstall-#{title}").with_command("yum -y groupinstall 'Core'") }
end
Expand Down
3 changes: 3 additions & 0 deletions spec/defines/plugin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,23 @@

context 'with no parameters' do
let(:title) { 'fastestmirror' }

it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_package("#{prefix}-#{title}").with_ensure('present') }
end

context 'when explicitly set to install' do
let(:title) { 'fastestmirror' }
let(:params) { { ensure: 'present' } }

it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_package("#{prefix}-#{title}").with_ensure('present') }
end

context 'when explicitly set to remove' do
let(:title) { 'fastestmirror' }
let(:params) { { ensure: 'absent' } }

it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_package("#{prefix}-#{title}").with_ensure('absent') }
end
Expand Down

0 comments on commit f4f1dec

Please sign in to comment.