Skip to content

Commit

Permalink
update to rspec >= 1 syntax
Browse files Browse the repository at this point in the history
To suppress:
    DEPRECATION: include_class is deprecated. Use contain_class instead
  • Loading branch information
Joshua Hoblitt committed May 17, 2014
1 parent 414fb5d commit 826ec4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec/unit/classes/mdadm_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

describe 'mdadm::config', :type => :class do
context 'no params' do
it { should include_class('mdadm::config') }
it { should contain_class('mdadm::config') }
end

context 'options =>' do
context '{}' do
let(:params) {{ :options => {}}}

it { should include_class('mdadm::config') }
it { should contain_class('mdadm::config') }
end

context '{ mailaddr => foo }' do
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/classes/mdadm_params_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
end

it { should include_class('mdadm::params') }
it { should contain_class('mdadm::params') }
end

describe 'unsupported osfamily' do
Expand All @@ -20,7 +20,7 @@
end

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

shared_examples 'mdadm' do
it { should contain_package('mdadm').with_ensure('present') }
it { should include_class('mdadm::params') }
it { should contain_class('mdadm::params') }
it { should contain_class('mdadm::mdmonitor') }
it do
should contain_service('mdmonitor').with({
Expand Down

0 comments on commit 826ec4c

Please sign in to comment.