test/mws/orders/test_entity.rb in mws-orders-0.2.0 vs test/mws/orders/test_entity.rb in mws-orders-0.2.1
- old
+ new
@@ -1,5 +1,6 @@
+# -*- encoding : utf-8
require "test_helper"
class TestEntity < MiniTest::Test
def test_parses_floats
xml = <<-EOF
@@ -38,9 +39,10 @@
<Amount>1000.00</Amount>
</Price>
EOF
entity= build_entity(xml)
money = entity.money_at_xpath("Price")
+
assert_equal "¥1,000", money.format
end
def test_parses_text
xml = <<-EOF