blob: b8234600cc9d02bc1d339468da1edb5448e06910 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#! /usr/bin/env ruby -S rspec
require 'spec_helper'
describe 'type_of', :if => Puppet.version.to_f >= 4.0 do
it 'gives the type of a string' do
expect(subject.call_function('type_of', 'hello world')).to be_kind_of(Puppet::Pops::Types::PStringType)
end
it 'gives the type of an integer' do
expect(subject.call_function('type_of', 5)).to be_kind_of(Puppet::Pops::Types::PIntegerType)
end
end
|