Sha256: 47437f6407330ee8de3e148a6ca92b89e555d0434f59db2b37a2e06c9058192f

Contents?: true

Size: 488 Bytes

Versions: 74

Compression:

Stored size: 488 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, /converted to 4x API/)
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
puppet-4.7.1 spec/unit/parser/functions/split_spec.rb
puppet-4.7.1-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-4.7.1-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-4.7.1-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-4.7.0 spec/unit/parser/functions/split_spec.rb
puppet-4.7.0-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-4.7.0-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-4.7.0-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-4.6.2 spec/unit/parser/functions/split_spec.rb
puppet-4.6.2-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-4.6.2-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-4.6.2-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-4.6.1-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-4.6.1 spec/unit/parser/functions/split_spec.rb
puppet-4.6.1-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-4.6.1-universal-darwin spec/unit/parser/functions/split_spec.rb
puppet-4.5.3 spec/unit/parser/functions/split_spec.rb
puppet-4.5.3-x86-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-4.5.3-x64-mingw32 spec/unit/parser/functions/split_spec.rb
puppet-4.5.3-universal-darwin spec/unit/parser/functions/split_spec.rb