Skip to content

Commit

Permalink
fix rspec-puppet 1.0.1 deprecation warning
Browse files Browse the repository at this point in the history
DEPRECATION: include_class is deprecated. Use contain_class instead.
  • Loading branch information
Joshua Hoblitt committed Dec 20, 2013
1 parent 083d2c8 commit b1afa01
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/classes/selenium_hub_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
p.merge!(params) if params

it do
should include_class('selenium')
should contain_class('selenium')
should contain_selenium__config('hub').with({
'options' => p[:options],
})
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/selenium_node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
p.merge!(params) if params

it do
should include_class('selenium')
should contain_class('selenium')
should contain_selenium__config('node').with({
'options' => "#{p[:options]} -hub #{p[:hub]}",
})
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/selenium_params_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
context 'for osfamily RedHat' do
let(:facts) {{ :osfamily => 'RedHat' }}

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

context 'unsupported osfamily' do
Expand All @@ -17,7 +17,7 @@
end

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

it do
should include_class('selenium')
should contain_class('selenium')
should contain_selenium__config('server').with({
'display' => p[:display],
'options' => p[:options],
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/selenium_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
it do
should contain_user(p[:user]).with_gid(p[:group])
should contain_group(p[:group])
should include_class('wget')
should contain_class('wget')
should contain_class('selenium').with_version(p[:version])
should contain_file("#{p[:install_root]}").with({
'ensure' => 'directory',
Expand Down

0 comments on commit b1afa01

Please sign in to comment.