diff options
Diffstat (limited to 'spec/unit/pops/parser/parser_spec.rb')
| -rw-r--r-- | spec/unit/pops/parser/parser_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/unit/pops/parser/parser_spec.rb b/spec/unit/pops/parser/parser_spec.rb new file mode 100644 index 000000000..86d3d6dd0 --- /dev/null +++ b/spec/unit/pops/parser/parser_spec.rb @@ -0,0 +1,15 @@ +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 == Model::AssignmentExpression + end +end |
