Sha256: 96b13cae5942a8c956fb86615fa04e7b10676ea95b7c18afefdbcce7328903cc

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 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)
    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

1 entries across 1 versions & 1 rubygems

Version Path
Fingertips-conversions-1.3.0 test/conversions_test.rb