We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7185418 commit 8c82288Copy full SHA for 8c82288
1 file changed
spec/unit/puppet/parser/functions/enclose_ipv6_spec.rb
@@ -2,8 +2,10 @@
2
3
require 'spec_helper'
4
5
-describe 'the enclose_ipv6 function' do
6
- let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
+describe 'enclose_ipv6' do
+ let(:node) { Puppet::Node.new('localhost') }
7
+ let(:compiler) { Puppet::Parser::Compiler.new(node) }
8
+ let(:scope) { Puppet::Parser::Scope.new(compiler) }
9
10
it 'exists' do
11
expect(Puppet::Parser::Functions.function('enclose_ipv6')).to eq('function_enclose_ipv6')
@@ -29,7 +31,7 @@
29
31
expect { scope.function_enclose_ipv6(['127.0.0.1']) }.not_to raise_error
30
32
end
33
- it 'does not raise a ParseError when given * as ip string' do
34
+ it 'does not raise a ParseError when given * as ip strint g' do
35
expect { scope.function_enclose_ipv6(['*']) }.not_to raise_error
36
37
0 commit comments