Sha256: 416c7581377324ad1c166dd3a83496a63a89c5d0b8ff3762cc550ec477090d08

Contents?: true

Size: 528 Bytes

Versions: 62

Compression:

Stored size: 528 Bytes

Contents

require 'test_helper'

module Workarea
  module Storefront
    module Checkout
      class AddressesViewModelTest < TestCase
        def test_shipping_address_returns_an_empty_shipping_address_when_shipping_is_nil
          checkout = Workarea::Checkout.new(Order.new)
          step = Workarea::Checkout::Steps::Addresses.new(checkout)
          view_model = Storefront::Checkout::AddressesViewModel.new(step)
          assert_instance_of(Shipping::Address, view_model.shipping_address)
        end
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

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