Sha256: 00fd32de634b37c6d1bf54dce2f029bf01f17aafaa0536f4c5ec30636cb5a6f5

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/hash/assert_has_only_keys.rb
#
# Extracted Tue Jun 20 15:12:26 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/hash/assert_has_only_keys.rb'


  require 'test/unit'

  class TCHash < Test::Unit::TestCase

    def test_assert_has_only_keys
      assert_nothing_raised {  { :a=>1,:b=>2,:c=>3 }.assert_has_only_keys(:a,:b,:c) }
      assert_raises( ArgumentError ) { { :a=>1,:b=>2,:c=>3 }.assert_has_only_keys(:a,:b) }
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.4.2 test/lib/facets/core/hash/test_assert_has_only_keys.rb