Project

General

Profile

Download (503 Bytes) Statistics
| Branch: | Tag: | Revision:
require 'spec_helper'

describe 'foreman' do
let(:facts) { { 'hardwaremodel' => 'x86_64'} }
let(:node) { 'test.example.com' }
let(:scope) { PuppetlabsSpec::PuppetInternals.scope }

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

# TODO: Test functionality of the actual function.

end
(1-1/2)