Sha256: bf89df2288caceb2672a848d06d9ef0640ba9c71539e118c815b8f90e95edddf

Contents?: true

Size: 365 Bytes

Versions: 62

Compression:

Stored size: 365 Bytes

Contents

require 'test_helper'
require 'workarea/lint'

module Workarea
  class Lint
    load_lints

    class ProductsMissingImagesTest < TestCase
      def test_warns_for_each_product_missing_images
        3.times { create_product(images: []) }
        lint = ProductsMissingImages.new
        lint.run

        assert_equal(3, lint.warnings)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 test/lib/workarea/lint/products_missing_images_test.rb
workarea-core-3.4.12 test/lib/workarea/lint/products_missing_images_test.rb