Sha256: 29bfa82830362edc8c12e97b702325613f7382f6b53cde4187a2f70deca34d8e

Contents?: true

Size: 503 Bytes

Versions: 304

Compression:

Stored size: 503 Bytes

Contents

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

304 entries across 304 versions & 1 rubygems

Version Path
puppet-8.3.0 spec/unit/parser/functions/regsubst_spec.rb
puppet-8.3.0-x86-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-8.3.0-x64-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-8.3.0-universal-darwin spec/unit/parser/functions/regsubst_spec.rb
puppet-8.4.0 spec/unit/parser/functions/regsubst_spec.rb
puppet-8.4.0-x86-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-8.4.0-x64-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-8.4.0-universal-darwin spec/unit/parser/functions/regsubst_spec.rb
puppet-7.28.0 spec/unit/parser/functions/regsubst_spec.rb
puppet-7.28.0-x86-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-7.28.0-x64-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-7.28.0-universal-darwin spec/unit/parser/functions/regsubst_spec.rb
puppet-8.3.1 spec/unit/parser/functions/regsubst_spec.rb
puppet-8.3.1-x86-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-8.3.1-x64-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-8.3.1-universal-darwin spec/unit/parser/functions/regsubst_spec.rb
puppet-7.27.0 spec/unit/parser/functions/regsubst_spec.rb
puppet-7.27.0-x86-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-7.27.0-x64-mingw32 spec/unit/parser/functions/regsubst_spec.rb
puppet-7.27.0-universal-darwin spec/unit/parser/functions/regsubst_spec.rb