Permalink
Browse files

remove convert_to tests, these are covered by specs

  • Loading branch information...
1 parent 3427425 commit 8b7b69193860f327a8508d913a3b8c974d3f1508 @olbrich olbrich committed Feb 2, 2012
Showing with 1 addition and 19 deletions.
  1. +1 −19 test/test_ruby-units.rb
View
20 test/test_ruby-units.rb
@@ -105,25 +105,7 @@ def test_create_from_array
assert_equal ['<milli>','<meter>','<milli>','<meter>'], unit1.numerator
assert_equal ['<micro>','<liter>','<micro>','<liter>'], unit1.denominator
end
-
-
- def test_convert_to
- unit1 = Unit.new("1 mm")
- unit2 = Unit.new("1 ft")
- assert_nothing_raised {
- unit3 = unit1 >> unit2
- assert_equal ['<foot>'], unit3.numerator
- assert_equal ['<1>'],unit3.denominator
- unit3 = unit1 >> "ft"
- assert_equal ['<foot>'], unit3.numerator
- assert_equal ['<1>'],unit3.denominator
- }
- assert_raises(ArgumentError) { unit1 >> 5.0}
- assert_equal unit1, unit1.convert_to(true)
- assert_equal unit1, unit1.convert_to(false)
- assert_equal unit1, unit1.convert_to(nil)
- end
-
+
def test_matched_units_using_string
unit1 = Unit.new("1 m*kg/s")
assert unit1 =~ "in*pound/min"

0 comments on commit 8b7b691

Please sign in to comment.