Class: FuzzBert::TestSuite
- Inherits:
-
Object
- Object
- FuzzBert::TestSuite
- Defined in:
- lib/fuzzbert/test_suite.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#generators ⇒ Object
readonly
Returns the value of attribute generators.
-
#test ⇒ Object
readonly
Returns the value of attribute test.
Class Method Summary collapse
Instance Method Summary collapse
- #data(desc, &blk) ⇒ Object
- #deploy(&blk) ⇒ Object
-
#initialize(desc) ⇒ TestSuite
constructor
A new instance of TestSuite.
Constructor Details
#initialize(desc) ⇒ TestSuite
Returns a new instance of TestSuite.
6 7 8 9 |
# File 'lib/fuzzbert/test_suite.rb', line 6 def initialize(desc) @description = desc @generators = [] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/fuzzbert/test_suite.rb', line 4 def description @description end |
#generators ⇒ Object (readonly)
Returns the value of attribute generators.
4 5 6 |
# File 'lib/fuzzbert/test_suite.rb', line 4 def generators @generators end |
#test ⇒ Object (readonly)
Returns the value of attribute test.
4 5 6 |
# File 'lib/fuzzbert/test_suite.rb', line 4 def test @test end |
Class Method Details
.create(desc, &blk) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/fuzzbert/test_suite.rb', line 21 def self.create(desc, &blk) raise RuntimeError.new "No block was given" unless blk obj = self.new(desc) obj.instance_eval(&blk) obj end |