Sha256: 6008eb8aa269eccc8ba79207cf9cef6a681ad056282c92118c9f0357d4ff63bf

Contents?: true

Size: 496 Bytes

Versions: 6

Compression:

Stored size: 496 Bytes

Contents

require "test_helper"

class ParallelizedNonTransactionalFixturelessTestCase < ActiveSupport::TestCase
  parallelize(workers: :number_of_processors)
  self.use_transactional_tests = false

  setup do
    TestData.uses_test_data
  end
end

class ParallelBoopsWithoutFixturesTest < ParallelizedNonTransactionalFixturelessTestCase
  100.times do |i|
    test "that boops don't change ##{i}" do
      assert_equal 10, Boop.count
      Boop.create!
      assert_equal 11, Boop.count
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
test_data-0.3.2 example/test/integration/parallel_boops_without_fixtures_test.rb
test_data-0.3.1 example/test/integration/parallel_boops_without_fixtures_test.rb
test_data-0.3.0 example/test/integration/parallel_boops_without_fixtures_test.rb
test_data-0.2.2 example/test/integration/parallel_boops_without_fixtures_test.rb
test_data-0.2.1 example/test/integration/parallel_boops_without_fixtures_test.rb
test_data-0.2.0 example/test/integration/parallel_boops_without_fixtures_test.rb