summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/ast/node_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/ast/node_spec.rb')
-rw-r--r--spec/unit/parser/ast/node_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/parser/ast/node_spec.rb b/spec/unit/parser/ast/node_spec.rb
index 409e877f9..3e8017de0 100644
--- a/spec/unit/parser/ast/node_spec.rb
+++ b/spec/unit/parser/ast/node_spec.rb
@@ -4,9 +4,10 @@ require File.dirname(__FILE__) + '/../../../spec_helper'
describe Puppet::Parser::AST::Node do
describe "when instantiated" do
- it "should make its names available through an accessor" do
- node = Puppet::Parser::AST::Node.new(['foo', 'bar'])
+ it "should make its names and context available through accessors" do
+ node = Puppet::Parser::AST::Node.new(['foo', 'bar'], :line => 5)
node.names.should == ['foo', 'bar']
+ node.context.should == {:line => 5}
end
it "should create a node with the proper type, name, context, and module name" do