Sha256: f4e82ce3df7180824d486e851d6ade03b365f8f065ecd4f886723482221a32c0

Contents?: true

Size: 397 Bytes

Versions: 10

Compression:

Stored size: 397 Bytes

Contents

require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb')
require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1')

class TestIndiferentHash < Test::Unit::TestCase
  def test_recursive
    a = {:a => {:b => 1 } }
    IndiferentHash.setup(a)

    assert IndiferentHash === a["a"]
    assert_equal 1, a[:a]["b"]
    assert_equal 1, a["a"][:b]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rbbt-util-5.43.0 test/rbbt/util/misc/test_indiferent_hash.rb
rbbt-util-5.42.0 test/rbbt/util/misc/test_indiferent_hash.rb
rbbt-util-5.41.1 test/rbbt/util/misc/test_indiferent_hash.rb
rbbt-util-5.41.0 test/rbbt/util/misc/test_indiferent_hash.rb
rbbt-util-5.40.5 test/rbbt/util/misc/test_indiferent_hash.rb
rbbt-util-5.40.4 test/rbbt/util/misc/test_indiferent_hash.rb
rbbt-util-5.40.3 test/rbbt/util/misc/test_indiferent_hash.rb
rbbt-util-5.40.0 test/rbbt/util/misc/test_indiferent_hash.rb
rbbt-util-5.39.0 test/rbbt/util/misc/test_indiferent_hash.rb
rbbt-util-5.38.1 test/rbbt/util/misc/test_indiferent_hash.rb