Sha256: 403d46f55d280cf275cab13f8e9e982c25f68c47135e0bec224b3b42eb57b15c

Contents?: true

Size: 468 Bytes

Versions: 14

Compression:

Stored size: 468 Bytes

Contents

require 'spec_helper'
require 'puppet/pops'

describe Puppet::Pops::Parser::Parser do
  it "should instantiate a parser" do
    parser = Puppet::Pops::Parser::Parser.new()
    parser.class.should == Puppet::Pops::Parser::Parser
  end

  it "should parse a code string and return a model" do
    parser = Puppet::Pops::Parser::Parser.new()
    model = parser.parse_string("$a = 10").current
    model.class.should == Puppet::Pops::Model::AssignmentExpression
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
puppet-3.4.3 spec/unit/pops/parser/parser_spec.rb
puppet-3.4.2 spec/unit/pops/parser/parser_spec.rb
puppet-3.4.1 spec/unit/pops/parser/parser_spec.rb
puppet-3.4.0 spec/unit/pops/parser/parser_spec.rb
puppet-3.4.0.rc2 spec/unit/pops/parser/parser_spec.rb
puppet-3.4.0.rc1 spec/unit/pops/parser/parser_spec.rb
puppet-3.3.2 spec/unit/pops/parser/parser_spec.rb
puppet-3.3.1 spec/unit/pops/parser/parser_spec.rb
puppet-3.3.1.rc3 spec/unit/pops/parser/parser_spec.rb
puppet-3.3.1.rc2 spec/unit/pops/parser/parser_spec.rb
puppet-3.3.1.rc1 spec/unit/pops/parser/parser_spec.rb
puppet-3.3.0 spec/unit/pops/parser/parser_spec.rb
puppet-3.3.0.rc3 spec/unit/pops/parser/parser_spec.rb
puppet-3.3.0.rc2 spec/unit/pops/parser/parser_spec.rb