Method: OSpec::Runner#initialize
- Defined in:
- lib/ospec/runner.rb
#initialize ⇒ Runner
Returns a new instance of Runner.
35 36 37 38 39 40 41 |
# File 'lib/ospec/runner.rb', line 35 def initialize if Runner.in_phantom? @formatter = PhantomFormatter.new elsif Runner.in_browser? @formatter = BrowserFormatter.new end end |