Sha256: 5ca4d5ee81c4083efdeb3c808e683ad38e007f6f71b2ca56c41e9900a6bfc856
Contents?: true
Size: 524 Bytes
Versions: 44
Compression:
Stored size: 524 Bytes
Contents
#! /usr/bin/env ruby require 'spec_helper' describe "the regsubst 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 an ParseError' do expect do @scope.function_regsubst( [ 'the monkey breaks banana trees', 'b[an]*a', 'coconut' ]) end.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