Sha256: df39679f63ad5e404b8e14160ae19dc8c84f65a7f15ad21a36829000606a0d1c

Contents?: true

Size: 462 Bytes

Versions: 9

Compression:

Stored size: 462 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../../../spec_helper'

describe Puppet::Parser::AST::Nop do

    before do
        @scope = mock 'scope'
    end

    it "should do nothing on evaluation" do
        Puppet::Parser::AST.expects(:safeevaluate).never
        Puppet::Parser::AST::Nop.new({}).evaluate(@scope)
    end

    it "should not return anything" do
        Puppet::Parser::AST::Nop.new({}).evaluate(@scope).should be_nil
    end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
puppet-0.25.5 spec/unit/parser/ast/nop.rb
puppet-0.25.4 spec/unit/parser/ast/nop.rb
puppet-0.25.3 spec/unit/parser/ast/nop.rb
puppet-0.24.9 spec/unit/parser/ast/nop.rb
puppet-0.25.2 spec/unit/parser/ast/nop.rb
puppet-0.25.1 spec/unit/parser/ast/nop.rb
puppet-0.25.0 spec/unit/parser/ast/nop.rb
puppet-0.24.7 spec/unit/parser/ast/nop.rb
puppet-0.24.8 spec/unit/parser/ast/nop.rb