Sha256: 912c458b2e830a2d89d231c0dd1fdbc1064472b0deab399c38b148e1702dfb21
Contents?: true
Size: 599 Bytes
Versions: 7
Compression:
Stored size: 599 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class ConversionsTest < Test::Unit::TestCase def setup Conversions.clear end def test_register Conversions.register(:records, :cds, 0.47) assert 2, Conversions.conversions.length assert_nothing_raised do 1.convert(:records, :cds) 1.convert(:cds, :records) 1.records.to(:cds) 1.cds.to(:records) end end def test_clear Conversions.register(:records, :cds, 0.47) assert 2, Conversions.conversions.length Conversions.clear assert 0, Conversions.conversions.length end end
Version data entries
7 entries across 7 versions & 2 rubygems