Sha256: ea086f4f4db08e22631e6a2864337e3b2f8d97b79e1ba219a65014d8eabd3a3e

Contents?: true

Size: 784 Bytes

Versions: 10

Compression:

Stored size: 784 Bytes

Contents

require 'helper'

module Mollie
  class MethodTest < Test::Unit::TestCase
    def test_setting_attributes
      attributes = {
        id:          'creditcard',
        description: 'Credit card',
        image:       {
          '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 '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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mollie-api-ruby-4.3.1 test/mollie/method_test.rb
mollie-api-ruby-4.3.0 test/mollie/method_test.rb
mollie-api-ruby-4.2.0 test/mollie/method_test.rb
mollie-api-ruby-4.1.5 test/mollie/method_test.rb
mollie-api-ruby-4.1.4 test/mollie/method_test.rb
mollie-api-ruby-4.1.3 test/mollie/method_test.rb
mollie-api-ruby-4.1.2 test/mollie/method_test.rb
mollie-api-ruby-4.1.1 test/mollie/method_test.rb
mollie-api-ruby-4.1.0 test/mollie/method_test.rb
mollie-api-ruby-4.0.1 test/mollie/method_test.rb