summaryrefslogtreecommitdiff
path: root/spec/unit/resource/file_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/file_spec.rb')
-rw-r--r--spec/unit/resource/file_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/resource/file_spec.rb b/spec/unit/resource/file_spec.rb
index f5b576c0f5..c93a213480 100644
--- a/spec/unit/resource/file_spec.rb
+++ b/spec/unit/resource/file_spec.rb
@@ -67,11 +67,11 @@ describe Chef::Resource::File do
end
it "should accept a block, symbol, or string for verify" do
- expect {@resource.verify {}}.not_to raise_error
- expect {@resource.verify ""}.not_to raise_error
- expect {@resource.verify :json}.not_to raise_error
- expect {@resource.verify true}.to raise_error
- expect {@resource.verify false}.to raise_error
+ expect { @resource.verify {} }.not_to raise_error
+ expect { @resource.verify "" }.not_to raise_error
+ expect { @resource.verify :json }.not_to raise_error
+ expect { @resource.verify true }.to raise_error
+ expect { @resource.verify false }.to raise_error
end
it "should accept multiple verify statements" do
@@ -122,8 +122,8 @@ describe Chef::Resource::File do
end
it "describes its state including windows ACL attributes" do
state = @resource.state
- expect(state[:rights]).to eq([ {:permissions => :read, :principals => "Everyone"},
- {:permissions => :full_control, :principals => "DOMAIN\User"} ])
+ expect(state[:rights]).to eq([ { :permissions => :read, :principals => "Everyone" },
+ { :permissions => :full_control, :principals => "DOMAIN\User" } ])
end
end