diff options
author | sdelano <stephen@opscode.com> | 2012-12-06 11:54:00 -0800 |
---|---|---|
committer | sdelano <stephen@opscode.com> | 2012-12-14 10:23:37 -0800 |
commit | 050caae38d9560efde096fa5b36296e2cbc27a84 (patch) | |
tree | 0ad1b72062ef4b6253eadc4f11775d2251f20b97 /spec/unit/provider | |
parent | cd55bafe89f0afe14e4257132ad4f73504bd60e7 (diff) | |
download | chef-050caae38d9560efde096fa5b36296e2cbc27a84.tar.gz |
swap arguments on File.join
Diffstat (limited to 'spec/unit/provider')
-rw-r--r-- | spec/unit/provider/remote_directory_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/remote_directory_spec.rb b/spec/unit/provider/remote_directory_spec.rb index bc900ec043..6c3ef84f05 100644 --- a/spec/unit/provider/remote_directory_spec.rb +++ b/spec/unit/provider/remote_directory_spec.rb @@ -32,7 +32,7 @@ describe Chef::Provider::RemoteDirectory do #to not have this line. Only affects updating state fields. Chef::Provider::CookbookFile.any_instance.stub(:update_new_file_state) - @resource = Chef::Resource::RemoteDirectory.new(File.join("tafty", Dir.tmpdir)) + @resource = Chef::Resource::RemoteDirectory.new(File.join(Dir.tmpdir, "tafty")) # in CHEF_SPEC_DATA/cookbooks/openldap/files/default/remotedir @resource.source "remotedir" @resource.cookbook('openldap') @@ -82,8 +82,8 @@ describe Chef::Provider::RemoteDirectory do end it "configures access control on intermediate directorys" do - directory_resource = @provider.send(:resource_for_directory, File.join("intermediate_dir", Dir.tmpdir)) - directory_resource.path.should == File.join("intermediate_dir", Dir.tmpdir) + directory_resource = @provider.send(:resource_for_directory, File.join(Dir.tmpdir, "intermediate_dir")) + directory_resource.path.should == File.join(Dir.tmpdir, "intermediate_dir") directory_resource.mode.should == "0750" directory_resource.group.should == "wheel" directory_resource.owner.should == "root" |