Sha256: 633a6e1bdf2206e181c7ad61be1cb2a4325c6e2344cb26e0d574a50d559bc840

Contents?: true

Size: 420 Bytes

Versions: 304

Compression:

Stored size: 420 Bytes

Contents

require 'spec_helper'

describe "the split 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 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

304 entries across 304 versions & 1 rubygems

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