Sha256: b6e197c84c7a387d44b9195febed5411adace47ad62715a0205701702a0fd631

Contents?: true

Size: 266 Bytes

Versions: 4

Compression:

Stored size: 266 Bytes

Contents

module RSpecSearchAndDestroy
  class BinaryChopExampleSelector
    def enable_set(examples)
      half_size = examples.size / 2

      enabled = examples.slice(0, half_size)
      disabled = examples.slice(half_size..-1)

      [enabled, disabled]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-search-and-destroy-0.0.4 lib/rspec-search-and-destroy/binary_chop_example_selector.rb
rspec-search-and-destroy-0.0.3 lib/rspec-search-and-destroy/binary_chop_example_selector.rb
rspec-search-and-destroy-0.0.2 lib/rspec-search-and-destroy/binary_chop_example_selector.rb
rspec-search-and-destroy-0.0.1 lib/rspec-search-and-destroy/binary_chop_example_selector.rb