[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Daniel Pittman daniel at puppetlabs.com
Tue May 10 08:16:50 UTC 2011


The following commit has been merged in the experimental branch:
commit 311e3ec762bc6863367d5d6ac6548d02a2d78e03
Author: Daniel Pittman <daniel at puppetlabs.com>
Date:   Tue Apr 19 11:04:31 2011 -0700

    maint: mangle grammer in rspec to avoid Jenkins fail...
    
    Apparently 'expect { ... } .not_to' is considered unnecessary contortion by
    the rspec authors, so we only have 'expect { ... } .to_not' in some versions
    of rspec.
    
    This updates the test code to reflect that bit of annoyance.

diff --git a/spec/shared_behaviours/documentation_on_faces.rb b/spec/shared_behaviours/documentation_on_faces.rb
index effca67..41b4015 100644
--- a/spec/shared_behaviours/documentation_on_faces.rb
+++ b/spec/shared_behaviours/documentation_on_faces.rb
@@ -4,13 +4,13 @@ shared_examples_for "documentation on faces" do
     describe "#summary" do
       it "should accept a summary" do
         text = "this is my summary"
-        expect { subject.summary = text }.not_to raise_error
+        expect { subject.summary = text }.to_not raise_error
         subject.summary.should == text
       end
 
       it "should accept a long, long, long summary" do
         text = "I never know when to stop with the word banana" + ("na" * 1000)
-        expect { subject.summary = text }.not_to raise_error
+        expect { subject.summary = text }.to_not raise_error
         subject.summary.should == text
       end
 

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list