Sha256: a4b72c7029216e0b99799d7672465188c33cba564d361bbb2ce0ad69c3484b30
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
# frozen_string_literal: true 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 'detects one problem' do expect(problems.size).to eq(1) end it 'creates 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 'does not detect any problem' do expect(problems.size).to eq(0) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems