test/mass_test.rb in quantified-1.0.1 vs test/mass_test.rb in quantified-1.1.0

- old
+ new

@@ -84,9 +84,14 @@ assert_equal [:metric, :imperial], Mass.systems assert_equal [:grams, :g, :milligrams, :mg, :carats, :ct, :kilograms, :kg], Mass.units(:metric) assert_equal [:ounces, :oz, :pounds, :lb, :stones, :st, :short_tons], Mass.units(:imperial) end + def test_coder + assert_equal :grams, Mass.grams.unit + assert_equal Mass, Mass.grams.attribute + end + def test_right_side_comparison_with_fixnum assert Mass.new(14, :grams) < 20 end def test_left_side_comparison_with_fixnum