Sha256: d3d1da150b9b72530ae0c4df670f1cb67930dd899c3956bd9b2fdf2309131844

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

module ForcedSelection
  attr_reader :selected_test_files

  def initialize_forced_selection(value = [])
    @selected_test_files = value
  end

  def forced_selection?
    !@selected_test_files.empty?
  end

  def reset_selection
    @selected_test_files = []
  end

  def force_selection(test_files)
    @selected_test_files = Array(test_files)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
retest-2.0.0.pre4 lib/retest/program/forced_selection.rb