[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

James Turnbull james at lovedthanlost.net
Wed Jul 14 10:34:19 UTC 2010


The following commit has been merged in the upstream branch:
commit a2e809bbb2fc95ae571223ae27b5e61bcd2c3196
Author: James Turnbull <james at lovedthanlost.net>
Date:   Thu Jun 10 09:49:10 2010 +1000

    Fixed RSpec deprecation notice in lexer tests

diff --git a/spec/unit/parser/lexer.rb b/spec/unit/parser/lexer.rb
index 204cde7..480a416 100755
--- a/spec/unit/parser/lexer.rb
+++ b/spec/unit/parser/lexer.rb
@@ -5,7 +5,7 @@ require File.dirname(__FILE__) + '/../../spec_helper'
 require 'puppet/parser/lexer'
 
 # This is a special matcher to match easily lexer output
-Spec::Matchers.create :be_like do |*expected|
+Spec::Matchers.define :be_like do |*expected|
     match do |actual|
         expected.zip(actual).all? { |e,a| !e or a[0] == e or (e.is_a? Array and a[0] == e[0] and (a[1] == e[1] or (a[1].is_a?(Hash) and a[1][:value] == e[1]))) }
     end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list