Class: Expectations::SuiteRunner
- Includes:
- Singleton
- Defined in:
- lib/expectations/suite_runner.rb
Instance Attribute Summary collapse
-
#suite ⇒ Object
Returns the value of attribute suite.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ SuiteRunner
constructor
A new instance of SuiteRunner.
Constructor Details
#initialize ⇒ SuiteRunner
Returns a new instance of SuiteRunner.
5 6 7 8 9 10 |
# File 'lib/expectations/suite_runner.rb', line 5 def initialize self.suite = Expectations::Suite.new at_exit do exit 1 unless suite.execute.succeeded? end end |
Instance Attribute Details
#suite ⇒ Object
Returns the value of attribute suite.
3 4 5 |
# File 'lib/expectations/suite_runner.rb', line 3 def suite @suite end |
Class Method Details
.do_not_run ⇒ Object
12 13 14 |
# File 'lib/expectations/suite_runner.rb', line 12 def self.do_not_run self.instance.suite.do_not_run end |
.suite_eval(&block) ⇒ Object
16 17 18 |
# File 'lib/expectations/suite_runner.rb', line 16 def self.suite_eval(&block) self.instance.suite.instance_eval(&block) end |