summaryrefslogtreecommitdiffstats
path: root/spec/unit/util/file_locking_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/util/file_locking_spec.rb')
-rwxr-xr-xspec/unit/util/file_locking_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/util/file_locking_spec.rb b/spec/unit/util/file_locking_spec.rb
index 35e7f781e..9a8fad1f2 100755
--- a/spec/unit/util/file_locking_spec.rb
+++ b/spec/unit/util/file_locking_spec.rb
@@ -30,7 +30,7 @@ describe Puppet::Util::FileLocking do
File.stubs(:exists?).with('/file').returns true
File.stubs(:file?).with('/file').returns true
end
-
+
it "should use a global shared mutex" do
@sync = mock 'sync'
@sync.expects(:synchronize).with(Sync::SH).once
@@ -66,7 +66,7 @@ describe Puppet::Util::FileLocking do
File.expects(:exists?).with('/file').returns false
File.expects(:open).with('/file').once
- Puppet::Util::FileLocking.readlock('/file')
+ Puppet::Util::FileLocking.readlock('/file')
end
end
@@ -150,7 +150,7 @@ describe Puppet::Util::FileLocking do
File.expects(:exists?).with('/file').returns false
File.expects(:open).with('/file', 'w', 0600).once
- Puppet::Util::FileLocking.writelock('/file')
+ Puppet::Util::FileLocking.writelock('/file')
end
end
end