Sha256: 5517394ae1316363745685b7096f3e7110bb4dc20b79bb497fff1cca32a6b361

Contents?: true

Size: 493 Bytes

Versions: 36

Compression:

Stored size: 493 Bytes

Contents

require 'spec_helper'

describe "the split function" do
  before :all do
    Puppet::Parser::Functions.autoloader.loadall
  end

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

  it 'should raise a ParseError' do
    expect { @scope.function_split([ '130;236;254;10', ';']) }.to raise_error(Puppet::ParseError, /can only be called using the 4.x function API/)
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
puppet-5.5.22 spec/unit/parser/functions/split_spec.rb
puppet-5.5.22-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.22-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.22-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-5.5.21 spec/unit/parser/functions/split_spec.rb
puppet-5.5.21-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.21-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.21-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-5.5.20 spec/unit/parser/functions/split_spec.rb
puppet-5.5.20-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.20-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.20-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-5.5.19 spec/unit/parser/functions/split_spec.rb
puppet-5.5.19-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.19-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.19-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-5.5.18 spec/unit/parser/functions/split_spec.rb
puppet-5.5.18-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.18-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.18-universal-darwin spec/unit/parser/functions/split_spec.rb