diff options
| author | James Turnbull <james@lovedthanlost.net> | 2009-12-19 10:02:16 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-12-19 10:02:16 +1100 |
| commit | fc221ffdae07e4cae8fb6b280c00193d639d2043 (patch) | |
| tree | 57d041456d82f3a799c44a0c4e2544a6eb66ed61 /spec/unit/parser | |
| parent | 037b99a27dc8b2aeb44c5cdfb20bfef672294405 (diff) | |
| download | puppet-fc221ffdae07e4cae8fb6b280c00193d639d2043.tar.gz puppet-fc221ffdae07e4cae8fb6b280c00193d639d2043.tar.xz puppet-fc221ffdae07e4cae8fb6b280c00193d639d2043.zip | |
Fixed RSpec deprecation error
Diffstat (limited to 'spec/unit/parser')
| -rwxr-xr-x | spec/unit/parser/lexer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/parser/lexer.rb b/spec/unit/parser/lexer.rb index 959f36026..a6aebc6fe 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 |ary| +Spec::Matchers.define :be_like do |ary| match do |result| r = true result.zip(ary) do |a,b| |
