Sha256: 2a8558d210ade31cd0ada6557a078db4f2e6214fada30609bb1aef724cc4ed32

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

#! /usr/bin/env ruby
require 'spec_helper'
require 'puppet/pops'

require 'rgen/array_extensions'

describe "RGen working with hashes" do
  it "should be possible to create an empty hash after having required the files above" do
    # If this fails, it means the rgen addition to Array is not monkey patched as it
    # should (it will return an array instead of fail in a method_missing), and thus
    # screw up Hash's check if it can do "to_hash' or not.
    #
    Hash[[]]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-3.2.2 spec/unit/pops/parser/rgen_sanitycheck_spec.rb
puppet-3.2.1 spec/unit/pops/parser/rgen_sanitycheck_spec.rb
puppet-3.2.1.rc1 spec/unit/pops/parser/rgen_sanitycheck_spec.rb
puppet-3.2.0.rc2 spec/unit/pops/parser/rgen_sanitycheck_spec.rb