Sha256: 5ca4d5ee81c4083efdeb3c808e683ad38e007f6f71b2ca56c41e9900a6bfc856

Contents?: true

Size: 524 Bytes

Versions: 44

Compression:

Stored size: 524 Bytes

Contents

#! /usr/bin/env ruby
require 'spec_helper'

describe "the regsubst function" do
  before :each do
    node     = Puppet::Node.new('localhost')
    compiler = Puppet::Parser::Compiler.new(node)
    @scope   = Puppet::Parser::Scope.new(compiler)
  end

  it 'should raise an ParseError' do
    expect do
      @scope.function_regsubst(
      [ 'the monkey breaks banana trees',
        'b[an]*a',
        'coconut'
      ])
    end.to raise_error(Puppet::ParseError, /can only be called using the 4.x function API/)
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
puppet-6.4.0 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.4.0-x86-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.4.0-x64-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.4.0-universal-darwin spec/unit/parser/functions/regsubst_spec.rb
puppet-6.0.7 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.0.7-x86-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.0.7-x64-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.0.7-universal-darwin spec/unit/parser/functions/regsubst_spec.rb
puppet-6.3.0 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.3.0-x86-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.3.0-x64-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.3.0-universal-darwin spec/unit/parser/functions/regsubst_spec.rb
puppet-6.2.0 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.2.0-x86-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.2.0-x64-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.2.0-universal-darwin spec/unit/parser/functions/regsubst_spec.rb
puppet-6.0.5 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.0.5-x86-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.0.5-x64-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-6.0.5-universal-darwin spec/unit/parser/functions/regsubst_spec.rb