Class: TestThat::TestBuilder
- Inherits:
-
Object
- Object
- TestThat::TestBuilder
- Defined in:
- lib/test_that/test_builder.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(options) ⇒ TestBuilder
constructor
A new instance of TestBuilder.
Constructor Details
#initialize(options) ⇒ TestBuilder
13 14 15 |
# File 'lib/test_that/test_builder.rb', line 13 def initialize() = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/test_that/test_builder.rb', line 11 def end |
Class Method Details
.build(options) ⇒ Object
6 7 8 |
# File 'lib/test_that/test_builder.rb', line 6 def build() new().build end |
Instance Method Details
#build ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/test_that/test_builder.rb', line 17 def build if no_tester? TestRunner::Error.new elsif test_all? TestRunner::All.new(tester) elsif selected_tests.any? TestRunner::Selected.new(tester, selected_tests) elsif stream_tests.any? TestRunner::VerboseSelected.new(tester, stream_tests) else TestRunner::Empty.new end end |