Sha256: 1e55685bcce41a46f5ffbcb11e9076518b6882bd8b84b76e5200ece720180308

Contents?: true

Size: 441 Bytes

Versions: 44

Compression:

Stored size: 441 Bytes

Contents

#! /usr/bin/env ruby
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

44 entries across 44 versions & 1 rubygems

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