require 'spec_helper'
describe 'ghost::blog', type: :define do
  let :facts do
    {
      osfamily: 'Debian',
      operatingsystem: 'Ubuntu',
      operatingsystemmajrelease: '14.04'
    }
  end

  let(:title) { 'my_blog' }

  describe 'defaults' do
    it do
      is_expected.to contain_exec('curl_ghost_my_blog')
    end
    it do
      is_expected.to contain_exec('unzip_ghost_my_blog')
    end
  end
end

require 'spec_helper'

describe 'ghost::blog' do
  on_supported_os.each do |os, os_facts|
    context "on #{os}" do
      let(:facts) { os_facts }
      let(:title) { 'my_blog' }

      it { is_expected.to contain_exec('curl_ghost_my_blog') }
      it { is_expected.to contain_exec('unzip_ghost_my_blog') }
    end
  end
end

Test ghost::blog on all supported OS
Test ghost::blog on all supported OS
