Sha256: 7635c9dafeffe3a667c0f33949574763f1051e443ca684c72d6190c110082b88
Contents?: true
Size: 752 Bytes
Versions: 4
Compression:
Stored size: 752 Bytes
Contents
require 'spec_helper' describe 'resource_reference_without_whitespace' do context 'a proper reference' do let(:msg) { 'whitespce between reference type and title' } let(:code) { "file { 'foo': ensure => file, notify => Title['one'],}" } it 'should detect no problem' do expect(problems).to have(0).problem end end context 'a whitespace between reference and bracket' do let(:msg) { 'whitespce between reference type and title' } let(:code) { "file { 'foo': ensure => file, notify => Title ['one'],}" } it 'should only detect a single problem' do expect(problems).to have(1).problem end it 'should create an error' do expect(problems).to contain_error(msg).on_line(1) end end end
Version data entries
4 entries across 4 versions & 1 rubygems