Sha256: 080c923469ac0aa6ec0971fe5f4afd6d997e3d3a06fee04a6ad2c1ad85b6f4b8
Contents?: true
Size: 516 Bytes
Versions: 62
Compression:
Stored size: 516 Bytes
Contents
require 'test_helper' module Workarea class ProductPrimaryImageUrlTest < Workarea::TestCase setup :setup_product def setup_product @product = create_product end def test_returns_small_thumb_by_default url = ProductPrimaryImageUrl.new(@product).url assert_includes(url, 'small_thumb') end def test_returns_the_image_url_for_specified_size url = ProductPrimaryImageUrl.new(@product, :medium_thumb).url assert_includes(url, 'medium_thumb') end end end
Version data entries
62 entries across 62 versions & 1 rubygems