Class: Expectations::SuiteRunner

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/expectations/suite_runner.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSuiteRunner

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

#suiteObject

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_runObject



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