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