Sha256: bf9e297653d731081e7643c109b9eeb8189b73a0067283407ef3c8731e5124c4
Contents?: true
Size: 687 Bytes
Versions: 6
Compression:
Stored size: 687 Bytes
Contents
require 'spec_helper' describe 'ghostbuster_types' do let(:code) { '' } context 'with fix disabled' do context 'when type is not used' do let(:path) { "./spec/fixtures/modules/foo/lib/puppet/type/foo.rb" } it 'should detect one problem' do expect(problems).to have(1).problems end it 'should create a warning' do expect(problems).to contain_warning("Type Foo seems unused") end end context 'when type is used in a manifest' do let(:path) { "./spec/fixtures/modules/foo/lib/puppet/type/bar.rb" } it 'should not detect any problem' do expect(problems).to have(0).problems end end end end
Version data entries
6 entries across 6 versions & 1 rubygems