summaryrefslogtreecommitdiff
path: root/spec/unit/file_cache_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/file_cache_spec.rb')
-rw-r--r--spec/unit/file_cache_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/unit/file_cache_spec.rb b/spec/unit/file_cache_spec.rb
index 8486b4517f..e63a8b0dba 100644
--- a/spec/unit/file_cache_spec.rb
+++ b/spec/unit/file_cache_spec.rb
@@ -36,10 +36,9 @@ describe Chef::FileCache do
end
it "creates the cached file at the correct relative path" do
- expect(File).to receive(:open).with(File.join(@file_cache_path, "whiz", "bang"), "w",416).and_yield(@io)
+ expect(File).to receive(:open).with(File.join(@file_cache_path, "whiz", "bang"), "w", 416).and_yield(@io)
Chef::FileCache.store("whiz/bang", "borkborkbork")
end
-
end
describe "when storing a file" do
@@ -51,7 +50,6 @@ describe Chef::FileCache do
Chef::FileCache.store("whiz/bang", "borkborkbork")
expect(@io.string).to eq("borkborkbork")
end
-
end
describe "when loading cached files" do
@@ -76,7 +74,6 @@ describe Chef::FileCache do
Chef::FileCache.delete("whiz/bang")
expect(File).not_to exist(File.join(@file_cache_path, "whiz", "bang"))
end
-
end
describe "when listing files in the cache" do
@@ -94,7 +91,6 @@ describe Chef::FileCache do
it "searches for cached files by globbing" do
expect(Chef::FileCache.find("snappy/**/*")).to eq(%w{snappy/patter})
end
-
end
describe "when checking for the existence of a file" do