diff --git a/README.md b/README.md index deb9552..6f9594a 100644 --- a/README.md +++ b/README.md @@ -133,4 +133,3 @@ See Also -------- * [`udev` manpage](http://www.freedesktop.org/software/systemd/man/udev.html) - diff --git a/spec/acceptance/nodesets/fedora-21.yml b/spec/acceptance/nodesets/fedora-21.yml index 95e3ce4..3f54b75 100644 --- a/spec/acceptance/nodesets/fedora-21.yml +++ b/spec/acceptance/nodesets/fedora-21.yml @@ -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 diff --git a/spec/classes/params_spec.rb b/spec/classes/params_spec.rb index 2397299..4b9f0cb 100644 --- a/spec/classes/params_spec.rb +++ b/spec/classes/params_spec.rb @@ -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/) @@ -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/) diff --git a/spec/classes/udev_spec.rb b/spec/classes/udev_spec.rb index 5186244..86d8f39 100644 --- a/spec/classes/udev_spec.rb +++ b/spec/classes/udev_spec.rb @@ -24,7 +24,7 @@ end describe 'for osfamily RedHat' do - let :facts do + let :facts do { :osfamily => 'RedHat', :operatingsystemmajrelease => '6', diff --git a/spec/defines/rule_spec.rb b/spec/defines/rule_spec.rb index 18ed6a5..fb77f9e 100644 --- a/spec/defines/rule_spec.rb +++ b/spec/defines/rule_spec.rb @@ -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( @@ -80,7 +79,7 @@ describe 'no params' do let(:title) { '99-foo.rules' } - + it 'should fail' do expect { should contain_class('udev') @@ -96,7 +95,7 @@ :source => 'foo', } end - + it 'should fail' do expect { should contain_class('udev') @@ -113,7 +112,7 @@ :source => 'foo', } end - + it 'should fail' do expect { should contain_class('udev') @@ -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') @@ -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') @@ -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')