summaryrefslogtreecommitdiff
path: root/spec/unit/resource_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource_spec.rb')
-rw-r--r--spec/unit/resource_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb
index 64f0b72b8f..1c3a825ea1 100644
--- a/spec/unit/resource_spec.rb
+++ b/spec/unit/resource_spec.rb
@@ -205,7 +205,7 @@ describe Chef::Resource do
end
it "coerces arrays to names" do
- expect(resource.name %w(a b)).to eql("a, b")
+ expect(resource.name %w{a b}).to eql("a, b")
end
it "should coerce objects to a string" do
@@ -270,7 +270,7 @@ describe Chef::Resource do
end
it "notifies a resource with an array for its name via its prettified string name" do
- run_context.resource_collection << Chef::Resource::ZenMaster.new(%w(coffee tea))
+ run_context.resource_collection << Chef::Resource::ZenMaster.new(%w{coffee tea})
resource.notifies :reload, run_context.resource_collection.find(:zen_master => "coffee, tea")
expect(resource.delayed_notifications.detect { |e| e.resource.name == "coffee, tea" && e.action == :reload }).not_to be_nil
end
@@ -859,9 +859,9 @@ describe Chef::Resource do
it "adds mappings for multiple platforms" do
expect(Chef.resource_handler_map).to receive(:set).with(
- :energy, Chef::Resource::Klz, { platform: %w(autobots decepticons) }
+ :energy, Chef::Resource::Klz, { platform: %w{autobots decepticons} }
)
- klz.provides :energy, platform: %w(autobots decepticons)
+ klz.provides :energy, platform: %w{autobots decepticons}
end
it "adds mappings for all platforms" do