test/mollie/method_test.rb in mollie-api-ruby-3.1.5 vs test/mollie/method_test.rb in mollie-api-ruby-4.0.0.pre.alpha.1
- old
+ new
@@ -4,25 +4,19 @@
class MethodTest < Test::Unit::TestCase
def test_setting_attributes
attributes = {
id: "creditcard",
description: "Credit card",
- amount: {
- 'minimum' => "0.31",
- 'maximum' => "10000.00"
- },
image: {
- 'normal' => "https://www.mollie.com/images/payscreen/methods/creditcard.png",
- 'bigger' => "https://www.mollie.com/images/payscreen/methods/creditcard@2x.png"
+ 'size1x' => "https://www.mollie.com/images/payscreen/methods/creditcard.png",
+ 'size2x' => "https://www.mollie.com/images/payscreen/methods/creditcard@2x.png"
}
}
method = Method.new(attributes)
assert_equal "creditcard", method.id
assert_equal "Credit card", method.description
- assert_equal BigDecimal.new("0.31"), method.minimum_amount
- assert_equal BigDecimal.new("10000.0"), method.maximum_amount
assert_equal "https://www.mollie.com/images/payscreen/methods/creditcard.png", method.normal_image
assert_equal "https://www.mollie.com/images/payscreen/methods/creditcard@2x.png", method.bigger_image
end
end
end