summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-06-13 13:15:26 +0200
committermh <mh@immerda.ch>2014-06-13 13:15:26 +0200
commitb4a5d72198df331e8cc62d309d14a989fa4c311c (patch)
tree6b6d769d117a00c020166b6e29caf4e24beaf111 /spec
parent88d197da8cedd5d711db043995f725ebe66b6ed6 (diff)
migrate tests to new format
Diffstat (limited to 'spec')
-rw-r--r--spec/classes/munin_client_base_spec.rb2
-rw-r--r--spec/classes/munin_client_spec.rb4
-rw-r--r--spec/classes/munin_host_cgi_spec.rb2
-rw-r--r--spec/classes/munin_host_spec.rb4
-rw-r--r--spec/classes/munin_plugins_interfaces_spec.rb2
5 files changed, 7 insertions, 7 deletions
diff --git a/spec/classes/munin_client_base_spec.rb b/spec/classes/munin_client_base_spec.rb
index 2ddfdcc..fdf1403 100644
--- a/spec/classes/munin_client_base_spec.rb
+++ b/spec/classes/munin_client_base_spec.rb
@@ -17,7 +17,7 @@ describe 'munin::client::base' do
end
it 'should compile' do
- should include_class('munin::client::base')
+ should contain_class('munin::client::base')
end
it 'should set up munin-node' do
diff --git a/spec/classes/munin_client_spec.rb b/spec/classes/munin_client_spec.rb
index 9a92cef..f7fc5e9 100644
--- a/spec/classes/munin_client_spec.rb
+++ b/spec/classes/munin_client_spec.rb
@@ -10,7 +10,7 @@ describe 'munin::client' do
it { should contain_package('munin-node') }
it { should contain_package('iproute') }
it { should contain_file('/etc/munin/munin-node.conf') }
- it { should include_class('munin::client::debian') }
+ it { should contain_class('munin::client::debian') }
end
shared_examples 'redhat-client' do |os, codename|
@@ -44,7 +44,7 @@ describe 'munin::client' do
}}
it { should contain_package('munin-node') }
it { should contain_file('/etc/munin/munin-node.conf') }
- it { should include_class('munin::client::gentoo') }
+ it { should contain_class('munin::client::gentoo') }
end
end
diff --git a/spec/classes/munin_host_cgi_spec.rb b/spec/classes/munin_host_cgi_spec.rb
index 301f964..52c5c22 100644
--- a/spec/classes/munin_host_cgi_spec.rb
+++ b/spec/classes/munin_host_cgi_spec.rb
@@ -11,7 +11,7 @@ describe 'munin::host::cgi' do
end
it 'should compile' do
- should include_class('munin::host::cgi')
+ should contain_class('munin::host::cgi')
end
it 'should exec set_modes_for_cgi' do
diff --git a/spec/classes/munin_host_spec.rb b/spec/classes/munin_host_spec.rb
index 461ced5..b707b5d 100644
--- a/spec/classes/munin_host_spec.rb
+++ b/spec/classes/munin_host_spec.rb
@@ -10,7 +10,7 @@ describe 'munin::host' do
}}
it { should contain_package('munin') }
it { should contain_file('/etc/munin/munin.conf') }
- it { should include_class('munin::host') }
+ it { should contain_class('munin::host') }
end
shared_examples 'redhat-host' do |os, codename|
@@ -22,7 +22,7 @@ describe 'munin::host' do
}}
it { should contain_package('munin') }
it { should contain_file('/etc/munin/munin.conf') }
- it { should include_class('munin::host') }
+ it { should contain_class('munin::host') }
end
context 'on debian-like system' do
diff --git a/spec/classes/munin_plugins_interfaces_spec.rb b/spec/classes/munin_plugins_interfaces_spec.rb
index 95aa785..7e3c418 100644
--- a/spec/classes/munin_plugins_interfaces_spec.rb
+++ b/spec/classes/munin_plugins_interfaces_spec.rb
@@ -10,7 +10,7 @@ describe 'munin::plugins::interfaces' do
end
it 'should compile' do
- should include_class('munin::plugins::interfaces')
+ should contain_class('munin::plugins::interfaces')
end
it 'should create plugins for each interface' do