Class: Jasmine::Formatters::ExitCode

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine/formatters/exit_code.rb

Instance Method Summary collapse

Constructor Details

#initializeExitCode

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

Returns:

  • (Boolean)


15
16
17
# File 'lib/jasmine/formatters/exit_code.rb', line 15

def succeeded?
  @result && @result['overallStatus'] == 'passed'
end