Sha256: fa794fd746b9e3f48dace52308aa0afc69b4b8324c19eb0b396374b19ac9888c
Contents?: true
Size: 753 Bytes
Versions: 3
Compression:
Stored size: 753 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, consume => 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
3 entries across 3 versions & 1 rubygems