Sha256: 822bb8034a3c68feeb170c25b5fca3085859f560664a78674ee5458d54e0da19

Contents?: true

Size: 304 Bytes

Versions: 4

Compression:

Stored size: 304 Bytes

Contents

covers 'facets/hash/to_mod'

testcase Hash do

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

  unit :to_mod => "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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/hash/test_to_mod.rb
facets-2.9.0 test/core/hash/test_to_mod.rb
facets-2.9.0.pre.2 test/core/hash/test_to_mod.rb
facets-2.9.0.pre.1 test/core/hash/test_to_mod.rb