Skip to content

Instantly share code, notes, and snippets.

@domcleal
Last active May 9, 2016 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domcleal/9b72984b029d439f3e48b20c93303c8c to your computer and use it in GitHub Desktop.
Save domcleal/9b72984b029d439f3e48b20c93303c8c to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe 'gluster::client', :type => :class do
on_supported_os.each do |os, facts|
context "on #{os}" do
let(:facts) do
facts
end
context "with all defaults"
it { should compile.with_all_deps }
it 'should include gluster::install' do
should create_class('gluster::install').with(
repo: true,
client_package: 'glusterfs-fuse',
version: 'LATEST',
)
end
end
context 'when a version number is specified' do
let :params do { version: '3.6.1' } end
it 'should include gluster::install with version 3.6.1' do
should create_class('gluster::install').with(
repo: true,
client_package: 'glusterfs-fuse',
version: '3.6.1',
)
end
end
context 'when repo is false' do
let :params do { repo: false } end
it 'should include gluster::install with repo=>false' do
should create_class('gluster::install').with(
repo: false,
client_package: 'glusterfs-fuse',
version: 'LATEST',
)
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment