summaryrefslogtreecommitdiff
path: root/spec/unit/chef_fs
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-04-13 12:15:43 +0100
committerThom May <thom@chef.io>2016-04-13 18:52:09 +0100
commitbf121d46ad8e73b9927bfe3c9a241ecbe9d13c9f (patch)
tree097a0e96f2eee5a543b6c4024f1bd32cd05a686f /spec/unit/chef_fs
parent681610a324462594054b1a112b121d15525eae70 (diff)
downloadchef-bf121d46ad8e73b9927bfe3c9a241ecbe9d13c9f.tar.gz
ensure directory and file_system_entry are compatible
Diffstat (limited to 'spec/unit/chef_fs')
-rw-r--r--spec/unit/chef_fs/file_system/repository/directory_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/chef_fs/file_system/repository/directory_spec.rb b/spec/unit/chef_fs/file_system/repository/directory_spec.rb
index e817717e65..e050181be9 100644
--- a/spec/unit/chef_fs/file_system/repository/directory_spec.rb
+++ b/spec/unit/chef_fs/file_system/repository/directory_spec.rb
@@ -64,7 +64,7 @@ describe Chef::ChefFS::FileSystem::Repository::Directory do
end
let(:file_double) do
- double(TestFile, create: true)
+ double(TestFile, create: true, exists?: false)
end
context "#make_child_entry" do
@@ -76,7 +76,7 @@ describe Chef::ChefFS::FileSystem::Repository::Directory do
context "#create_child" do
it "creates a new TestFile" do
expect(TestFile).to receive(:new).with("test_child", test_directory).and_return(file_double)
- expect(file_double).to receive(:create)
+ expect(file_double).to receive(:write).with("test")
test_directory.create_child("test_child", "test")
end
end