1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'ensure_resource function', :unless => fact('osfamily') =~ /windows/i do
6 it 'ensure_resource a package' do
7 apply_manifest('package { "rake": ensure => absent, provider => "gem", }')
10 ensure_resource('package', $a, {'provider' => 'gem'})
13 apply_manifest(pp, :expect_changes => true)
15 it 'ensures a resource already declared'
16 it 'takes defaults arguments'
19 it 'handles no arguments'
20 it 'handles non strings'