
This patch aim to update our specs test in order to work with the rspec-puppet release 2.0.0, in the mean time, we update rspec syntax order to be prepared for rspec 3.x move. In details: * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x) * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0 Change-Id: Ic9ac859be612f2afc5486340e5aa8eaf83473ab4
31 lines
503 B
Ruby
31 lines
503 B
Ruby
#
|
|
# Unit tests for tuskar::init
|
|
#
|
|
require 'spec_helper'
|
|
|
|
describe 'tuskar' do
|
|
|
|
shared_examples_for 'tuskar' do
|
|
it {
|
|
is_expected.to contain_class('tuskar::params')
|
|
is_expected.to contain_exec('post-tuskar_config')
|
|
}
|
|
end
|
|
|
|
context 'on Debian platforms' do
|
|
let :facts do
|
|
{ :osfamily => 'Debian' }
|
|
end
|
|
|
|
it_configures 'tuskar'
|
|
end
|
|
|
|
context 'on RedHat platforms' do
|
|
let :facts do
|
|
{ :osfamily => 'RedHat' }
|
|
end
|
|
|
|
it_configures 'tuskar'
|
|
end
|
|
end
|