require 'spec_helper'
describe "the abs function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("abs").should == "function_abs"
require 'spec_helper'
describe "the bool2num function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("bool2num").should == "function_bool2num"
require 'spec_helper'
describe "the capitalize function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("capitalize").should == "function_capitalize"
require 'spec_helper'
describe "the chomp function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("chomp").should == "function_chomp"
require 'spec_helper'
describe "the chop function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("chop").should == "function_chop"
require 'spec_helper'
describe "the delete_at function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("delete_at").should == "function_delete_at"
require 'spec_helper'
describe "the delete function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("delete").should == "function_delete"
require 'spec_helper'
describe "the downcase function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("downcase").should == "function_downcase"
require 'spec_helper'
describe "the empty function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("empty").should == "function_empty"
end
require 'spec_helper'
describe "the flatten function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("flatten").should == "function_flatten"
end
require 'spec_helper'
describe Puppet::Parser::Functions.function(:getvar) do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
describe 'when calling getvar from puppet' do
it "should not compile when no arguments are passed" do
require 'spec_helper'
describe "the grep function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("grep").should == "function_grep"
require 'spec_helper'
describe Puppet::Parser::Functions.function(:has_key) do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
describe 'when calling has_key from puppet' do
it "should not compile when no arguments are passed" do
require 'spec_helper'
describe "the hash function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("hash").should == "function_hash"
require 'spec_helper'
describe "the is_array function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("is_array").should == "function_is_array"
require 'spec_helper'
describe "the is_domain_name function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("is_domain_name").should == "function_is_domain_name"
require 'spec_helper'
describe "the is_float function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("is_float").should == "function_is_float"
require 'spec_helper'
describe "the is_hash function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("is_hash").should == "function_is_hash"
require 'spec_helper'
describe "the is_integer function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("is_integer").should == "function_is_integer"
require 'spec_helper'
describe "the is_ip_address function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("is_ip_address").should == "function_is_ip_address"
require 'spec_helper'
describe "the is_mac_address function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("is_mac_address").should == "function_is_mac_address"
require 'spec_helper'
describe "the is_numeric function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("is_numeric").should == "function_is_numeric"
require 'spec_helper'
describe "the is_string function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("is_string").should == "function_is_string"
require 'spec_helper'
describe "the join function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("join").should == "function_join"
require 'spec_helper'
describe "the keys function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("keys").should == "function_keys"
require 'spec_helper'
describe "the lstrip function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("lstrip").should == "function_lstrip"
require 'spec_helper'
describe "the member function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("member").should == "function_member"
require 'spec_helper'
describe Puppet::Parser::Functions.function(:merge) do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
describe 'when calling merge from puppet' do
it "should not compile when no arguments are passed" do
require 'spec_helper'
describe "the num2bool function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("num2bool").should == "function_num2bool"
require 'spec_helper'
describe "the parsejson function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("parsejson").should == "function_parsejson"
require 'spec_helper'
describe "the parseyaml function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("parseyaml").should == "function_parseyaml"
require 'spec_helper'
describe "the prefix function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("prefix").should == "function_prefix"
require 'spec_helper'
describe "the range function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("range").should == "function_range"
require 'spec_helper'
describe "the reverse function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("reverse").should == "function_reverse"
require 'spec_helper'
describe "the rstrip function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("rstrip").should == "function_rstrip"
require 'spec_helper'
describe "the shuffle function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("shuffle").should == "function_shuffle"
require 'spec_helper'
describe "the size function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("size").should == "function_size"
require 'spec_helper'
describe "the sort function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("sort").should == "function_sort"
require 'spec_helper'
describe "the squeeze function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("squeeze").should == "function_squeeze"
require 'spec_helper'
describe "the str2bool function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("str2bool").should == "function_str2bool"
require 'spec_helper'
describe "the strftime function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("strftime").should == "function_strftime"
require 'spec_helper'
describe "the strip function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("strip").should == "function_strip"
end
require 'spec_helper'
describe "the swapcase function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("swapcase").should == "function_swapcase"
require 'spec_helper'
describe "the time function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("time").should == "function_time"
require 'spec_helper'
describe "the type function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("type").should == "function_type"
end
require 'spec_helper'
describe "the unique function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("unique").should == "function_unique"
require 'spec_helper'
describe "the upcase function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("upcase").should == "function_upcase"
require 'spec_helper'
describe Puppet::Parser::Functions.function(:validate_array) do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
describe 'when calling validate_array from puppet' do
%w{ true false }.each do |the_string|
require 'spec_helper'
describe Puppet::Parser::Functions.function(:validate_bool) do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
describe 'when calling validate_bool from puppet' do
%w{ true false }.each do |the_string|
require 'spec_helper'
describe Puppet::Parser::Functions.function(:validate_hash) do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
describe 'when calling validate_hash from puppet' do
require 'spec_helper'
describe Puppet::Parser::Functions.function(:validate_string) do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
describe 'when calling validate_string from puppet' do
require 'spec_helper'
describe "the values_at function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("values_at").should == "function_values_at"
require 'spec_helper'
describe "the values function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should exist" do
Puppet::Parser::Functions.function("values").should == "function_values"
require 'spec_helper'
describe "the zip function" do
- let(:scope) { PuppetlabsSpec::PuppetSeams.parser_scope }
+ let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
it "should raise a ParseError if there is less than 1 arguments" do
lambda { scope.function_zip([]) }.should( raise_error(Puppet::ParseError))