# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/hash/assert_has_only_keys.rb # # Extracted Tue Feb 06 17:03:51 EST 2007 # Project.rb Test Extraction # 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