Sha256: a40cdc3730b3fd4fbe4bc7f59b2ac2b30263bad3d256c67afafc1ace567244ab

Contents?: true

Size: 274 Bytes

Versions: 3

Compression:

Stored size: 274 Bytes

Contents

require 'parallel_split_test'
require 'rspec/core/example'

RSpec::Core::Example.class_eval do
  alias :run_without_parallel_split_test :run
  def run(*args, &block)
    if ParallelSplitTest.run_example?
      run_without_parallel_split_test(*args, &block)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
parallel_split_test-0.1.4 lib/parallel_split_test/core_ext/rspec_example.rb
parallel_split_test-0.1.3 lib/parallel_split_test/core_ext/rspec_example.rb
parallel_split_test-0.1.2 lib/parallel_split_test/core_ext/rspec_example.rb