Class: Jasmine::Formatters::ExitCode
- Inherits:
-
Object
- Object
- Jasmine::Formatters::ExitCode
- Defined in:
- lib/jasmine/formatters/exit_code.rb
Instance Method Summary collapse
- #done(result) ⇒ Object
- #format(results) ⇒ Object
-
#initialize ⇒ ExitCode
constructor
A new instance of ExitCode.
- #succeeded? ⇒ Boolean
Constructor Details
#initialize ⇒ ExitCode
Returns a new instance of ExitCode.
4 5 6 |
# File 'lib/jasmine/formatters/exit_code.rb', line 4 def initialize @result = nil end |
Instance Method Details
#done(result) ⇒ Object
11 12 13 |
# File 'lib/jasmine/formatters/exit_code.rb', line 11 def done(result) @result = result end |
#format(results) ⇒ Object
8 9 |
# File 'lib/jasmine/formatters/exit_code.rb', line 8 def format(results) end |
#succeeded? ⇒ Boolean
15 16 17 |
# File 'lib/jasmine/formatters/exit_code.rb', line 15 def succeeded? @result && @result['overallStatus'] == 'passed' end |