test/mws/orders/test_entity.rb in mws-orders-0.3.1 vs test/mws/orders/test_entity.rb in mws-orders-0.4.0

- old
+ new

@@ -28,23 +28,22 @@ <Amount>10.00</Amount> </Price> XML entity = build_entity(xml) money = entity.money_at_xpath('Price') - assert_equal '$10.00', money.format + assert_equal 1000, money.fractional end - def test_parses_japanese_yen + def test_parses_yen xml = <<-XML <Price xmlns="example"> <CurrencyCode>JPY</CurrencyCode> <Amount>1000.00</Amount> </Price> XML entity = build_entity(xml) money = entity.money_at_xpath('Price') - - assert_equal '¥1,000', money.format + assert_equal 1000, money.fractional end def test_parses_text xml = <<-XML <Text xmlns="example">Foo</Text>