Class: OSpecRunner
Class Method Summary collapse
Instance Method Summary collapse
- #did_finish ⇒ Object
-
#initialize(formatter_class) ⇒ OSpecRunner
constructor
A new instance of OSpecRunner.
- #register ⇒ Object
- #run ⇒ Object
- #will_start ⇒ Object
Constructor Details
#initialize(formatter_class) ⇒ OSpecRunner
Returns a new instance of OSpecRunner
150 151 152 153 154 |
# File 'opal/lib/mspec/opal/runner.rb', line 150 def initialize(formatter_class) @formatter_class = formatter_class register run end |
Class Method Details
.main(formatter_class = BrowserFormatter) ⇒ Object
146 147 148 |
# File 'opal/lib/mspec/opal/runner.rb', line 146 def self.main(formatter_class = BrowserFormatter) @main ||= self.new formatter_class end |
Instance Method Details
#did_finish ⇒ Object
171 172 173 |
# File 'opal/lib/mspec/opal/runner.rb', line 171 def did_finish MSpec.actions :finish end |
#register ⇒ Object
156 157 158 159 160 161 |
# File 'opal/lib/mspec/opal/runner.rb', line 156 def register formatter = @formatter_class.new formatter.register OSpecFilter.main.register end |
#run ⇒ Object
163 164 165 |
# File 'opal/lib/mspec/opal/runner.rb', line 163 def run MSpec.opal_runner end |