[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35
test branch
puppet-dev at googlegroups.com
Wed Jul 14 10:31:49 UTC 2010
The following commit has been merged in the upstream branch:
commit 09b14120fe81a2955a1e4572ec0b8040ef540ade
Author: Jesse Wolfe <jes5199 at gmail.com>
Date: Wed Mar 17 11:28:06 2010 -0700
Fix tests on #3347
diff --git a/spec/unit/network/client/dipper.rb b/spec/unit/file_bucket/dipper.rb
similarity index 92%
rename from spec/unit/network/client/dipper.rb
rename to spec/unit/file_bucket/dipper.rb
index 7d8b3da..ffa2d45 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"
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list