Sha256: d0d2cc06706215e0ed23bc30151be994309d2542f65d0dc54c9b26c348990a8a

Contents?: true

Size: 529 Bytes

Versions: 18

Compression:

Stored size: 529 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::Program
    model.body.class.should == Puppet::Pops::Model::AssignmentExpression
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
puppet-3.6.2 spec/unit/pops/parser/parser_spec.rb
puppet-3.6.2-x86-mingw32 spec/unit/pops/parser/parser_spec.rb
puppet-3.6.1 spec/unit/pops/parser/parser_spec.rb
puppet-3.6.1-x86-mingw32 spec/unit/pops/parser/parser_spec.rb
puppet-3.6.0 spec/unit/pops/parser/parser_spec.rb
puppet-3.6.0-x86-mingw32 spec/unit/pops/parser/parser_spec.rb
puppet-3.6.0.rc1 spec/unit/pops/parser/parser_spec.rb
puppet-3.6.0.rc1-x86-mingw32 spec/unit/pops/parser/parser_spec.rb
puppet-3.5.1 spec/unit/pops/parser/parser_spec.rb
puppet-3.5.1-x86-mingw32 spec/unit/pops/parser/parser_spec.rb
puppet-3.5.1.rc1 spec/unit/pops/parser/parser_spec.rb
puppet-3.5.1.rc1-x86-mingw32 spec/unit/pops/parser/parser_spec.rb
puppet-3.5.0.rc3 spec/unit/pops/parser/parser_spec.rb
puppet-3.5.0.rc3-x86-mingw32 spec/unit/pops/parser/parser_spec.rb
puppet-3.5.0.rc2 spec/unit/pops/parser/parser_spec.rb
puppet-3.5.0.rc2-x86-mingw32 spec/unit/pops/parser/parser_spec.rb
puppet-3.5.0.rc1 spec/unit/pops/parser/parser_spec.rb
puppet-3.5.0.rc1-x86-mingw32 spec/unit/pops/parser/parser_spec.rb