Class: TurboTests::FakeExecutionResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/turbo_tests.rb,
lib/turbo_tests.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#example_skipped?Object

Returns the value of attribute example_skipped?

Returns:

  • (Object)

    the current value of example_skipped?



42
43
44
# File 'lib/turbo_tests.rb', line 42

def example_skipped?
  @example_skipped?
end

#exceptionObject

Returns the value of attribute exception

Returns:

  • (Object)

    the current value of exception



42
43
44
# File 'lib/turbo_tests.rb', line 42

def exception
  @exception
end

#pending_exceptionObject

Returns the value of attribute pending_exception

Returns:

  • (Object)

    the current value of pending_exception



42
43
44
# File 'lib/turbo_tests.rb', line 42

def pending_exception
  @pending_exception
end

#pending_fixed?Object

Returns the value of attribute pending_fixed?

Returns:

  • (Object)

    the current value of pending_fixed?



42
43
44
# File 'lib/turbo_tests.rb', line 42

def pending_fixed?
  @pending_fixed?
end

#pending_messageObject

Returns the value of attribute pending_message

Returns:

  • (Object)

    the current value of pending_message



42
43
44
# File 'lib/turbo_tests.rb', line 42

def pending_message
  @pending_message
end

#run_timeObject

Returns the value of attribute run_time

Returns:

  • (Object)

    the current value of run_time



42
43
44
# File 'lib/turbo_tests.rb', line 42

def run_time
  @run_time
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



42
43
44
# File 'lib/turbo_tests.rb', line 42

def status
  @status
end

Class Method Details

.from_obj(obj) ⇒ Object



53
54
55
56
57
58
59
60
61
62
63
# File 'lib/turbo_tests.rb', line 53

def from_obj(obj)
  new(
    obj[:example_skipped?],
    obj[:pending_message],
    obj[:status].to_sym,
    obj[:pending_fixed?],
    FakeException.from_obj(obj[:exception]),
    FakeException.from_obj(obj[:exception]),
    obj[:run_time]
  )
end