Sha256: 13355f234ab2c7aaba3b1473f5037f5c806af8bf225936df84637a41339613fe

Contents?: true

Size: 508 Bytes

Versions: 62

Compression:

Stored size: 508 Bytes

Contents

require 'test_helper'

module Workarea
  module DataFile
    class OperationTest < TestCase
      def test_samples
        sample = [create_product, create_product]
        import = create_import(model_type: Workarea::Catalog::Product)
        assert_equal(Workarea.config.data_file_sample_size, import.samples.size)
      end

      def test_no_samples_available
        import = create_import(model_type: Workarea::Catalog::Product)
        assert_equal(0, import.samples.size)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.27 test/models/workarea/data_file/operation_test.rb
workarea-core-3.5.26 test/models/workarea/data_file/operation_test.rb
workarea-core-3.4.45 test/models/workarea/data_file/operation_test.rb
workarea-core-3.5.25 test/models/workarea/data_file/operation_test.rb
workarea-core-3.5.23 test/models/workarea/data_file/operation_test.rb
workarea-core-3.4.44 test/models/workarea/data_file/operation_test.rb
workarea-core-3.5.22 test/models/workarea/data_file/operation_test.rb
workarea-core-3.4.43 test/models/workarea/data_file/operation_test.rb
workarea-core-3.5.21 test/models/workarea/data_file/operation_test.rb
workarea-core-3.4.42 test/models/workarea/data_file/operation_test.rb
workarea-core-3.5.20 test/models/workarea/data_file/operation_test.rb
workarea-core-3.4.41 test/models/workarea/data_file/operation_test.rb
workarea-core-3.5.19 test/models/workarea/data_file/operation_test.rb
workarea-core-3.4.40 test/models/workarea/data_file/operation_test.rb
workarea-core-3.5.18 test/models/workarea/data_file/operation_test.rb
workarea-core-3.4.39 test/models/workarea/data_file/operation_test.rb
workarea-core-3.5.17 test/models/workarea/data_file/operation_test.rb
workarea-core-3.4.38 test/models/workarea/data_file/operation_test.rb
workarea-core-3.5.16 test/models/workarea/data_file/operation_test.rb
workarea-core-3.4.37 test/models/workarea/data_file/operation_test.rb