test/models/billing/charge_test.rb in billing-0.1.8 vs test/models/billing/charge_test.rb in billing-0.1.9

- old
+ new

@@ -18,7 +18,13 @@ charge = Billing::Charge.new Billing::Charge.wild_args("2.5*3.5##{billing_plus(:one).id}@#{billing_tax_groups(:one).id}+1.5%/Umbrella") assert_equal charge.price, '3.5 USD'.to_money assert_equal charge.name, 'Umbrella' #p charge end + + test "qty" do + charge = Billing::Charge.new price: 0.95, qty: 2.0 + assert_equal charge.price, '0.95'.to_money + assert_equal charge.qtyprice, '1.90'.to_money + end end end