lib/vendor/quantified/test/mass_test.rb in active_shipping-0.10.0 vs lib/vendor/quantified/test/mass_test.rb in active_shipping-0.10.1

- old
+ new

@@ -1,6 +1,6 @@ -require File.dirname(__FILE__) + '/test_helper' +require 'test_helper' require 'quantified/mass' class MassTest < Test::Unit::TestCase include Quantified Mass.numeric_methods :grams, :kilograms, :ounces, :pounds @@ -83,6 +83,14 @@ def test_systems assert_equal [:metric, :imperial], Mass.systems assert_equal [:grams, :milligrams, :kilograms], Mass.units(:metric) assert_equal [:ounces, :pounds, :stones, :short_tons], Mass.units(:imperial) end -end \ No newline at end of file + + def test_right_side_comparison_with_fixnum + assert Mass.new(14, :grams) < 20 + end + + def test_left_side_comparison_with_fixnum + assert 20 > Mass.new(14, :grams) + end +end