Sha256: 8b49a55c78473f30f74a66204373f69963555b1265895474d72aa762dc03fb08
Contents?: true
Size: 764 Bytes
Versions: 2
Compression:
Stored size: 764 Bytes
Contents
require 'spec_helper' describe 'resource_reference_without_title_capital' 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 'resource reference with title as capital letter' do let(:msg) { 'resource reference with title with capital letter' } 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
2 entries across 2 versions & 1 rubygems