[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:32:45 UTC 2010

The following commit has been merged in the upstream branch:
commit 8c5e80edd84ec1e2f8c594b74b57a1e48af92e87
Author: Markus Roberts <Markus at reality.com>
Date:   Sat May 15 13:19:18 2010 -0700

    Fixing bad test
    Actually, just moving the bad around.  The test as written depended on the
    implementation details of Parser#file=; when those changed, it broke the test
    and this patch fixes the test by updating it's unwarranted assumptions to
    match the current details.
    The real solution should probably be to ban all such tests and yank them from
    the code base without mercy, but that's a task for another day, after we solve
    world peace and cure the common cold.

diff --git a/spec/unit/parser/parser.rb b/spec/unit/parser/parser.rb
index 909a73c..ccb7e84 100755
--- a/spec/unit/parser/parser.rb
+++ b/spec/unit/parser/parser.rb
@@ -36,7 +36,7 @@ describe Puppet::Parser do
     describe "when parsing files" do
         before do
             FileTest.stubs(:exist?).returns true
-            File.stubs(:open)
+            File.stubs(:read).returns ""

Puppet packaging for Debian

More information about the Pkg-puppet-devel mailing list