Sha256: 56be608d3a4d4abc5b8c004e6ef025bb2edd817031d1cc9c025f43be5e266af1

Contents?: true

Size: 462 Bytes

Versions: 5

Compression:

Stored size: 462 Bytes

Contents

require 'test_helper'

module Workarea
  module Search
    class Storefront
      class ProductOptionImageUrlTest < TestCase
        def test_image
          product = create_product
          image = product.images.create!(option: 'red')
          url = ProductOptionImageUrl.new(product, option: image.option)

          assert_equal(image, url.send(:image))
          refute_nil(url.path)
          refute_nil(url.url)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-browse_option-2.2.0 test/models/workarea/search/storefront/product_option_image_url_test.rb
workarea-browse_option-2.1.9 test/models/workarea/search/storefront/product_option_image_url_test.rb
workarea-browse_option-2.1.8 test/models/workarea/search/storefront/product_option_image_url_test.rb
workarea-browse_option-2.1.7 test/models/workarea/search/storefront/product_option_image_url_test.rb
workarea-browse_option-2.1.6 test/models/workarea/search/storefront/product_option_image_url_test.rb