diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-09-09 16:20:26 -0700 |
|---|---|---|
| committer | Jesse Wolfe <jes5199@gmail.com> | 2010-09-09 16:20:26 -0700 |
| commit | 6860594c4d95855d5106fbf664a473e1ac4d3935 (patch) | |
| tree | 89ccd167744440199647c924be6ffa28eb7fb41a /spec/unit/parser/parser_spec.rb | |
| parent | f62095749a14fd67987df5cf2e3e9138b71efd19 (diff) | |
| parent | df088c9ba16dce50c17a79920c1ac186db67b9e9 (diff) | |
| download | puppet-6860594c4d95855d5106fbf664a473e1ac4d3935.tar.gz puppet-6860594c4d95855d5106fbf664a473e1ac4d3935.tar.xz puppet-6860594c4d95855d5106fbf664a473e1ac4d3935.zip | |
Merge remote branch 'paul/ticket/next/4638' into next
Diffstat (limited to 'spec/unit/parser/parser_spec.rb')
| -rwxr-xr-x | spec/unit/parser/parser_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/unit/parser/parser_spec.rb b/spec/unit/parser/parser_spec.rb index 0a61e73de..bf4ef0cf1 100755 --- a/spec/unit/parser/parser_spec.rb +++ b/spec/unit/parser/parser_spec.rb @@ -143,7 +143,6 @@ describe Puppet::Parser do end it "should create an ast::ResourceReference" do - ast::Resource.stubs(:new) ast::ResourceReference.expects(:new).with { |arg| arg[:line]==1 and arg[:type]=="File" and arg[:title].is_a?(ast::ASTArray) } @@ -386,11 +385,11 @@ describe Puppet::Parser do end it "should correctly mark exported resources as exported" do - @parser.parse("@@file { '/file': }").code[0][0].exported.should be_true + @parser.parse("@@file { '/file': }").code[0].exported.should be_true end it "should correctly mark virtual resources as virtual" do - @parser.parse("@file { '/file': }").code[0][0].virtual.should be_true + @parser.parse("@file { '/file': }").code[0].virtual.should be_true end end |
