Sha256: fe4f6df04117d4ff436d5fbc78133877239b5edefdb5e1650b89a7021ab0b250
Contents?: true
Size: 713 Bytes
Versions: 3
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe 'ghostbuster_defines' do context 'with fix disabled' do context 'when define is not used' do let(:code) { 'define foo::foo {}' } let(:path) { './modules/foo/manifests/foo.pp' } it 'detects one problem' do expect(problems.size).to eq(1) end it 'creates a warning' do expect(problems).to contain_warning('Define Foo::Foo seems unused') end end context 'when define is used' do let(:code) { 'define bar::foo {}' } let(:path) { './modules/bar/manifests/foo.pp' } 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