Sha256: aebbb0153a466808c67cccdc6ef2e301f9032c459cfb228ee61ba490403880ad

Contents?: true

Size: 701 Bytes

Versions: 62

Compression:

Stored size: 701 Bytes

Contents

require 'test_helper'

module Workarea
  module Storefront
    class CreditCardsHelperTest < ViewTest
      include InlineSvg::ActionView::Helpers

      def test_credit_card_issuer_icon
        assert_equal(
          inline_svg(
            'workarea/storefront/default_card.svg',
            class: 'payment-icon payment-icon--foo',
            title: 'Foo'
          ),
          credit_card_issuer_icon('Foo')
        )

        assert_equal(
          inline_svg(
            'workarea/storefront/payment_icons/visa.svg',
            class: 'payment-icon payment-icon--visa',
            title: 'Visa'
          ),
          credit_card_issuer_icon('Visa')
        )
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-storefront-3.5.15 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.4.36 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.5.14 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.4.35 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.5.13 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.4.34 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.5.12 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.4.33 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.5.11 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.5.10 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.4.32 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.5.9 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.4.31 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.5.8 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.4.30 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.5.7 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.4.29 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.5.6 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.4.28 test/helpers/workarea/storefront/credit_cards_helper_test.rb
workarea-storefront-3.5.5 test/helpers/workarea/storefront/credit_cards_helper_test.rb