summaryrefslogtreecommitdiff
path: root/spec/unit/resource/file/verification_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/file/verification_spec.rb')
-rw-r--r--spec/unit/resource/file/verification_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/resource/file/verification_spec.rb b/spec/unit/resource/file/verification_spec.rb
index b27d8ca754..f55f6416aa 100644
--- a/spec/unit/resource/file/verification_spec.rb
+++ b/spec/unit/resource/file/verification_spec.rb
@@ -21,7 +21,7 @@ require "spec_helper"
describe Chef::Resource::File::Verification do
let(:t_block) { Proc.new { true } }
let(:f_block) { Proc.new { false } }
- let(:path_block) { Proc.new { |path| path }}
+ let(:path_block) { Proc.new { |path| path } }
let(:temp_path) { "/tmp/foobar" }
describe "verification registration" do
@@ -33,7 +33,7 @@ describe Chef::Resource::File::Verification do
end
it "raises an error if a verification can't be found" do
- expect{Chef::Resource::File::Verification.lookup(:dne)}.to raise_error(Chef::Exceptions::VerificationNotFound)
+ expect { Chef::Resource::File::Verification.lookup(:dne) }.to raise_error(Chef::Exceptions::VerificationNotFound)
end
end
@@ -42,13 +42,13 @@ describe Chef::Resource::File::Verification do
it "expects a string argument" do
v = Chef::Resource::File::Verification.new(parent_resource, nil, {}) {}
- expect{ v.verify("/foo/bar") }.to_not raise_error
- expect{ v.verify }.to raise_error
+ expect { v.verify("/foo/bar") }.to_not raise_error
+ expect { v.verify }.to raise_error
end
it "accepts an options hash" do
v = Chef::Resource::File::Verification.new(parent_resource, nil, {}) {}
- expect{ v.verify("/foo/bar", {:future => true}) }.to_not raise_error
+ expect { v.verify("/foo/bar", { :future => true }) }.to_not raise_error
end
context "with a verification block" do