Sha256: dc563d1378fbbd0d5be89c664ba771e4fd3bf04204d6300e649ae97ce0e6df1f

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

covers 'facets/hash/to_mod'

test_case Hash do

  method :to_mod do

    test do
      h = { :a=>1, :b=>2 }
      m = h.to_mod
      Module.assert === m
    end

    test "check methods" do
      h = { :a=>1, :b=>2 }
      m = h.to_mod
      x = Class.new{ include m }.new
      x.a.assert == 1
      x.b.assert == 2
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/hash/test_to_mod.rb
facets-3.1.0 test/core/hash/test_to_mod.rb
facets-3.0.0 test/core/hash/test_to_mod.rb
facets-2.9.3 test/core/hash/test_to_mod.rb
facets-2.9.2 test/core/hash/test_to_mod.rb