Sha256: 13263c69be3ca87d5d9154a7e8dc124e3d8e5677eeb9b13becd3a5c3d20f57a3

Contents?: true

Size: 357 Bytes

Versions: 20

Compression:

Stored size: 357 Bytes

Contents

require 'spec_helper'
require 'puppet/pops'
require_relative 'parser_rspec_helper'

describe "egrammar parsing of 'application'" do
  include ParserRspecHelper

  it "raises a syntax error" do
    expect {
      parse("application foo { }")
    }.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at 'application' \(line: 1, column: 1\)/)
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-7.4.1 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.4.1-x86-mingw32 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.4.1-x64-mingw32 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.4.1-universal-darwin spec/unit/pops/parser/parse_application_spec.rb
puppet-7.4.0 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.4.0-x86-mingw32 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.4.0-x64-mingw32 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.4.0-universal-darwin spec/unit/pops/parser/parse_application_spec.rb
puppet-7.3.0 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.3.0-x86-mingw32 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.3.0-x64-mingw32 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.3.0-universal-darwin spec/unit/pops/parser/parse_application_spec.rb
puppet-7.1.0 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.1.0-x86-mingw32 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.1.0-x64-mingw32 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.1.0-universal-darwin spec/unit/pops/parser/parse_application_spec.rb
puppet-7.0.0 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.0.0-x86-mingw32 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.0.0-x64-mingw32 spec/unit/pops/parser/parse_application_spec.rb
puppet-7.0.0-universal-darwin spec/unit/pops/parser/parse_application_spec.rb