[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:18:07 UTC 2011


The following commit has been merged in the experimental branch:
commit f25acf9aea1e72459a8c3e81e3f825bafec24979
Author: Daniel Pittman <daniel at puppetlabs.com>
Date:   Sun Apr 24 10:46:08 2011 -0700

    maint: add the 'to', 'not_to', and 'to_not' aliases to rspec...
    
    Specifically, add them if they are not already added by rspec itself, which
    means that we can use them without blowing up older installations.

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 1dcf3c2..a01ae56 100755
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -102,3 +102,15 @@ RSpec::Matchers.define :exit_with do |expected|
     "expect exit with #{expected}"
   end
 end
+
+# Backward compatibility for Jenkins outdated environment.
+module RSpec
+  module Matchers
+    module BlockAliases
+      alias_method :to,     :should      unless method_defined? :to
+      alias_method :to_not, :should_not  unless method_defined? :to_not
+      alias_method :not_to, :should_not  unless method_defined? :not_to
+    end
+  end
+end
+

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list