Class: TestThat::TestRunner::Selected

Inherits:
TestRunner
  • Object
show all
Defined in:
lib/test_that/test_runner.rb

Direct Known Subclasses

VerboseSelected

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tester, tests_to_run) ⇒ Selected

Returns a new instance of Selected.



14
15
16
17
# File 'lib/test_that/test_runner.rb', line 14

def initialize(tester, tests_to_run)
  super(tester)
  @tests_to_run = tests_to_run
end

Instance Attribute Details

#tests_to_runObject (readonly)

Returns the value of attribute tests_to_run.



12
13
14
# File 'lib/test_that/test_runner.rb', line 12

def tests_to_run
  @tests_to_run
end

Instance Method Details

#testObject



19
20
21
# File 'lib/test_that/test_runner.rb', line 19

def test
  system(tester.test_files_command(tests_to_run))
end