Sha256: 049ca6be9416c07d9a0b322034ab20b86bc3d9898df7f675a13c77ddfdbc7287
Contents?: true
Size: 1.23 KB
Versions: 5
Compression:
Stored size: 1.23 KB
Contents
require_relative '../spec_helper.rb' require_relative '../../lib/puppet-check/rspec_puppet_support' require 'fileutils' describe RSpecPuppetSupport do after(:all) do # cleanup rspec_puppet_setup File.delete('spec/spec_helper.rb') %w[manifests modules].each { |dir| FileUtils.rm_r('spec/fixtures/' + dir) } end context '.run' do let(:rspec_puppet_setup) { RSpecPuppetSupport.run } before(:each) { Dir.chdir(fixtures_dir) } it 'creates missing directories, missing site.pp, missing symlinks, and a missing spec_helper' do expect { rspec_puppet_setup }.to output("puppetlabs/gruntmaster has an unspecified, or specified but unsupported, download method.\n").to_stderr # .file_setup expect(File.directory?('spec/fixtures/manifests')).to be true expect(File.directory?('spec/fixtures/modules')).to be true expect(File.file?('spec/fixtures/manifests/site.pp')).to be true expect(File.symlink?('spec/fixtures/modules/fixtures')).to be true expect(File.file?('spec/spec_helper.rb')).to be true # .dependency_setup expect(File.directory?('spec/fixtures/modules/puppetlabs-lvm')).to be true expect(File.directory?('spec/fixtures/modules/stdlib')).to be true end end end
Version data entries
5 entries across 5 versions & 1 rubygems