Skip to content

Commit

Permalink
fix trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Jun 6, 2015
1 parent 26635ed commit 6c88e12
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,3 @@ See Also
--------

* [`udev` manpage](http://www.freedesktop.org/software/systemd/man/udev.html)

2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/fedora-21.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOSTS:
roles:
- master
platform: fedora-21-x86_64
box: chef/fedora-21
box: chef/fedora-21
hypervisor: vagrant
CONFIG:
type: foss
12 changes: 6 additions & 6 deletions spec/classes/params_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@

describe 'udev::params', :type => :class do
describe 'for osfamily RedHat' do
let :facts do
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => '6',
}
end


it { should contain_class('udev::params') }
end

describe 'for osfamily RedHat' do
let :facts do
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => '4',
}
end

it 'should fail' do
expect { should contain_class('udev::params') }.
to raise_error(Puppet::Error, /not supported on RedHat release 4/)
Expand All @@ -34,13 +34,13 @@
end

describe 'unsupported osfamily' do
let :facts do
let :facts do
{
:osfamily => 'Suse',
:operatingsystem => 'OpenSuSE',
}
end

it 'should fail' do
expect { should contain_class('udev::params') }.
to raise_error(Puppet::Error, /not supported on OpenSuSE/)
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/udev_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
end

describe 'for osfamily RedHat' do
let :facts do
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => '6',
Expand Down
15 changes: 7 additions & 8 deletions spec/defines/rule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@


describe 'for osfamily RedHat' do
let :facts do
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => '6',
}
end


describe 'content => foo' do
it_behaves_like(
Expand Down Expand Up @@ -80,7 +79,7 @@

describe 'no params' do
let(:title) { '99-foo.rules' }

it 'should fail' do
expect {
should contain_class('udev')
Expand All @@ -96,7 +95,7 @@
:source => 'foo',
}
end

it 'should fail' do
expect {
should contain_class('udev')
Expand All @@ -113,7 +112,7 @@
:source => 'foo',
}
end

it 'should fail' do
expect {
should contain_class('udev')
Expand All @@ -124,7 +123,7 @@
describe 'ensure => invalid' do
let(:title) { '99-foo.rules' }
let(:params) {{ :ensure => 'invalid' }}

it 'should fail' do
expect {
should contain_class('udev')
Expand All @@ -135,7 +134,7 @@
describe 'content => true' do
let(:title) { '99-foo.rules' }
let(:params) {{ :content => true }}

it 'should fail' do
expect {
should contain_class('udev')
Expand All @@ -146,7 +145,7 @@
describe 'source => true' do
let(:title) { '99-foo.rules' }
let(:params) {{ :source => true }}

it 'should fail' do
expect {
should contain_class('udev')
Expand Down

0 comments on commit 6c88e12

Please sign in to comment.