Class: Flatware::RSpec::Marshalable::ExecutionResult
- Inherits:
-
RSpec::Core::Example::ExecutionResult
- Object
- RSpec::Core::Example::ExecutionResult
- Flatware::RSpec::Marshalable::ExecutionResult
- Defined in:
- lib/flatware/rspec/marshalable/execution_result.rb
Class Method Summary collapse
Class Method Details
.from_rspec(result) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/flatware/rspec/marshalable/execution_result.rb', line 6 def self.from_rspec(result) new.tap do |marshalable| marshalable.exception = result.exception && SerializedException.from(result.exception) %i[finished_at run_time started_at status].each do |member| marshalable.public_send(:"#{member}=", result.public_send(member)) end end end |