Sha256: f62fd287d72168940de1b3506f38191b568d8982868e9c2ff19f11941ca5ef67

Contents?: true

Size: 514 Bytes

Versions: 160

Compression:

Stored size: 514 Bytes

Contents

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

160 entries across 160 versions & 1 rubygems

Version Path
puppet-5.5.12 spec/unit/parser/functions/split_spec.rb
puppet-5.5.12-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.12-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.12-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-5.5.10 spec/unit/parser/functions/split_spec.rb
puppet-5.5.10-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.10-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.10-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-5.5.8 spec/unit/parser/functions/split_spec.rb
puppet-5.5.8-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.8-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.8-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-5.5.7 spec/unit/parser/functions/split_spec.rb
puppet-5.5.7-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.7-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.7-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-5.5.6 spec/unit/parser/functions/split_spec.rb
puppet-5.5.6-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.6-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-5.5.6-universal-darwin spec/unit/parser/functions/split_spec.rb