Module: Hash::EnsureKeys::Etest
- Defined in:
- lib/vex/base/hash/ensure_keys.rb
Instance Method Summary collapse
Instance Method Details
#test_ensure_keys ⇒ Object
12 13 14 15 16 17 |
# File 'lib/vex/base/hash/ensure_keys.rb', line 12 def test_ensure_keys h = { :a => "a" } assert_equal true, h.keys?(:a) assert_equal true, h.keys? assert_equal false, h.keys?(:a, :b) end |