diff --git a/Gemfile b/Gemfile index b6dcf45..26eb10b 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org" group :test do - gem 'voxpupuli-test', '~> 5.0', :require => false + gem 'voxpupuli-test', '~> 5.0', :git => 'https://github.com/voxpupuli/voxpupuli-test.git', :branch => 'hash-table', :require => false gem 'coveralls', :require => false gem 'simplecov-console', :require => false gem 'puppet_metadata', '~> 1.0', :require => false diff --git a/spec/classes/example_spec.rb b/spec/classes/example_spec.rb index e19972e..f0a2c4b 100644 --- a/spec/classes/example_spec.rb +++ b/spec/classes/example_spec.rb @@ -9,6 +9,30 @@ it { is_expected.to compile.with_all_deps } it { is_expected.to contain_file('/tmp/puppet-example').with_content('Hello World!') } + + context 'with key alignment' do # rubocop:disable RSpec/RepeatedExampleGroupBody + let(:params) do + { + 'file' => '/something', + 'content' => 'test' + } + end + + it { is_expected.to compile.with_all_deps } + it { is_expected.to contain_file('/something').with_content('test') } + end + + context 'with table alignment' do # rubocop:disable RSpec/RepeatedExampleGroupBody + let(:params) do + { + 'file' => '/something', + 'content' => 'test' + } + end + + it { is_expected.to compile.with_all_deps } + it { is_expected.to contain_file('/something').with_content('test') } + end end end end