Sha256: 8a899096ffc4f2526697baed197a452ff3273f7d5be25af2758b79a0b0bc0a61

Contents?: true

Size: 586 Bytes

Versions: 3

Compression:

Stored size: 586 Bytes

Contents

require 'spec_helper'

describe 'resource_reference_chain_without_whitespace' do

  context 'a whitespace between reference and bracket on chains' do
    let(:msg) { 'whitespce between reference type and title' }
    let(:code) { "class foo { include foo::install include foo::config include foo::service Class ['foo::install'] -> Class ['foo::config'] ~> Class ['foo::service'] } " }

    it 'should detect two problems' do
      expect(problems).to have(3).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

Version Path
puppet-lint-resource_reference_syntax-1.2.0 spec/puppet-lint/plugins/resource_reference_chain_without_whitespace_spec.rb
puppet-lint-resource_reference_syntax-1.1.0 spec/puppet-lint/plugins/resource_reference_chain_without_whitespace_spec.rb
puppet-lint-resource_reference_syntax-1.0.14 spec/puppet-lint/plugins/resource_reference_chain_without_whitespace_spec.rb