summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-03-17 11:28:06 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit09b14120fe81a2955a1e4572ec0b8040ef540ade (patch)
tree2d95b76df8020726e6e1548e7acab9af80a599d2
parente5a78009f6bd593e7e3957f0dadb470e623396dd (diff)
downloadpuppet-09b14120fe81a2955a1e4572ec0b8040ef540ade.tar.gz
puppet-09b14120fe81a2955a1e4572ec0b8040ef540ade.tar.xz
puppet-09b14120fe81a2955a1e4572ec0b8040ef540ade.zip
Fix tests on #3347
-rwxr-xr-xspec/unit/file_bucket/dipper.rb (renamed from spec/unit/network/client/dipper.rb)12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/network/client/dipper.rb b/spec/unit/file_bucket/dipper.rb
index 7d8b3da08..ffa2d4576 100755
--- a/spec/unit/network/client/dipper.rb
+++ b/spec/unit/file_bucket/dipper.rb
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../../../spec_helper'
+require File.dirname(__FILE__) + '/../../spec_helper'
require 'puppet/file_bucket/dipper'
describe Puppet::FileBucket::Dipper do
it "should fail in an informative way when there are failures backing up to the server" do
- File.stubs(:exists?).returns true
+ File.stubs(:exist?).returns true
File.stubs(:read).returns "content"
@dipper = Puppet::FileBucket::Dipper.new(:Path => "/my/bucket")
@@ -23,7 +23,7 @@ describe Puppet::FileBucket::Dipper do
:Path => "/my/bucket"
)
- File.stubs(:exists?).returns true
+ File.stubs(:exist?).returns true
File.stubs(:read).with("/my/file").returns "my contents"
req = stub "req"
@@ -48,7 +48,7 @@ describe Puppet::FileBucket::Dipper do
:Path => "/my/bucket"
)
- File.stubs(:exists?).returns true
+ File.stubs(:exist?).returns true
File.stubs(:read).with("/my/file").returns "my contents"
bucketfile = stub "bucketfile"
@@ -67,7 +67,7 @@ describe Puppet::FileBucket::Dipper do
:Port => "31337"
)
- File.stubs(:exists?).returns true
+ File.stubs(:exist?).returns true
File.stubs(:read).with("/my/file").returns "my contents"
req = stub "req"
@@ -93,7 +93,7 @@ describe Puppet::FileBucket::Dipper do
:Port => "31337"
)
- File.stubs(:exists?).returns true
+ File.stubs(:exist?).returns true
File.stubs(:read).with("/my/file").returns "my contents"
bucketfile = stub "bucketfile"