try with modules from master
[mirror/dsa-puppet.git] / 3rdparty / modules / keystone / spec / classes / keystone_service_spec.rb
index 29d90b0..3aa302d 100644 (file)
@@ -3,13 +3,13 @@ require 'spec_helper'
 describe 'keystone::service' do
 
   describe "with default parameters" do
-    it { should contain_service('keystone').with(
-      :ensure     => 'running',
+    it { is_expected.to contain_service('keystone').with(
+      :ensure     => nil,
       :enable     => true,
       :hasstatus  => true,
       :hasrestart => true
     ) }
-    it { should_not contain_exec('validate_keystone_connection') }
+    it { is_expected.to_not contain_exec('validate_keystone_connection') }
   end
 
   describe "with validation on" do
@@ -20,12 +20,12 @@ describe 'keystone::service' do
       }
     end
 
-    it { should contain_service('keystone').with(
-      :ensure     => 'running',
+    it { is_expected.to contain_service('keystone').with(
+      :ensure     => nil,
       :enable     => true,
       :hasstatus  => true,
       :hasrestart => true
     ) }
-    it { should contain_exec('validate_keystone_connection') }
+    it { is_expected.to contain_exec('validate_keystone_connection') }
   end
 end