spec/unit/parser/ast/astarray_spec.rb in puppet-2.7.26 vs spec/unit/parser/ast/astarray_spec.rb in puppet-3.0.0.rc4
- old
+ new
@@ -1,10 +1,12 @@
-#!/usr/bin/env rspec
+#! /usr/bin/env ruby -S rspec
require 'spec_helper'
describe Puppet::Parser::AST::ASTArray do
before :each do
- @scope = Puppet::Parser::Scope.new
+ node = Puppet::Node.new('localhost')
+ compiler = Puppet::Parser::Compiler.new(node)
+ @scope = Puppet::Parser::Scope.new(compiler)
end
it "should have a [] accessor" do
array = Puppet::Parser::AST::ASTArray.new :children => []
array.should respond_to(:[])