Upgrade to Havana release
Also upgrade gems: - berkshelf, ~> 2.0.10 - chefspec, ~> 3.0.2 - foodcritic, ~> 3.0.3 And update the DEPRECATION keywords Change-Id: I8f8bf961ec065944696d4c85120aefe6c2bf76bb
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
require "chefspec"
|
||||
require "chef/application"
|
||||
require_relative "support/matcher"
|
||||
|
||||
::LOG_LEVEL = :fatal
|
||||
::OPENSUSE_OPTS = {
|
||||
@@ -49,7 +50,8 @@ def expect_creates_cinder_conf service, user, group, action=:restart
|
||||
end
|
||||
|
||||
it "has proper owner" do
|
||||
expect(@file).to be_owned_by user, group
|
||||
expect(@file.owner).to eq(user)
|
||||
expect(@file.group).to eq(group)
|
||||
end
|
||||
|
||||
it "has proper modes" do
|
||||
@@ -57,7 +59,7 @@ def expect_creates_cinder_conf service, user, group, action=:restart
|
||||
end
|
||||
|
||||
it "notifies service restart" do
|
||||
expect(@file).to notify service, action
|
||||
expect(@file).to notify(service).to(action)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -69,7 +71,8 @@ def expect_creates_policy_json service, user, group, action=:restart
|
||||
end
|
||||
|
||||
it "has proper owner" do
|
||||
expect(@file).to be_owned_by user, group
|
||||
expect(@file.owner).to eq(user)
|
||||
expect(@file.group).to eq(group)
|
||||
end
|
||||
|
||||
it "has proper modes" do
|
||||
@@ -77,7 +80,7 @@ def expect_creates_policy_json service, user, group, action=:restart
|
||||
end
|
||||
|
||||
it "notifies service restart" do
|
||||
expect(@file).to notify service, action
|
||||
expect(@file).to notify(service).to(action)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user