Sha256: 0f679aa88f1f058a252171bbca651b8b075045c39fa82ea6aeff0c7d382cc632

Contents?: true

Size: 399 Bytes

Versions: 92

Compression:

Stored size: 399 Bytes

Contents

#! /usr/bin/env ruby
require '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

92 entries across 92 versions & 2 rubygems

Version Path
puppet-3.8.7 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.7-x86-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.7-x64-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.6 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.6-x86-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.6-x64-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.5 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.5-x86-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.5-x64-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.4 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.4-x86-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.4-x64-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.3 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.3-x86-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.3-x64-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.2 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.2-x86-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.2-x64-mingw32 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.1 spec/unit/parser/ast/nop_spec.rb
puppet-3.8.1-x86-mingw32 spec/unit/parser/ast/nop_spec.rb