Project

General

Profile

« Previous | Next » 

Revision d110b188

Added by Dominic Cleal about 10 years ago

Remove Puppet 2.6 pending marker using pre-Facter 2 API call

View differences:

spec/functions/foreman_spec.rb
let(:node) { 'test.example.com' }
let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
pending "due to Puppet #4549 on 2.6", :if => Facter.puppetversion =~ /^2\.6/ do
it 'should exist' do
Puppet::Parser::Functions.function('foreman').should == 'function_foreman'
end
it 'should exist' do
Puppet::Parser::Functions.function('foreman').should == 'function_foreman'
end
it 'should throw an error with no arguments' do
lambda {
scope.function_foreman([])
}.should(raise_error(Puppet::ParseError))
end
it 'should throw an error with no arguments' do
lambda {
scope.function_foreman([])
}.should(raise_error(Puppet::ParseError))
end
# TODO: Test functionality of the actual function.
spec/functions/smartvar_spec.rb
let(:node) { 'test.example.com' }
let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
pending "due to Puppet #4549 on 2.6", :if => Facter.puppetversion =~ /^2\.6/ do
it 'should exist' do
Puppet::Parser::Functions.function('smartvar').should == 'function_smartvar'
end
it 'should exist' do
Puppet::Parser::Functions.function('smartvar').should == 'function_smartvar'
end
it 'should throw an error with no arguments' do
lambda {
scope.function_smartvar([])
}.should(raise_error(Puppet::ParseError))
end
it 'should throw an error with no arguments' do
lambda {
scope.function_smartvar([])
}.should(raise_error(Puppet::ParseError))
end
# TODO: Test functionality of the actual function.

Also available in: Unified diff