Class: RSpec::Hermetic::Probe::Time

Inherits:
Base
  • Object
show all
Defined in:
lib/rspec/hermetic/probe/time.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #name

Constructor Details

This class inherits a constructor from RSpec::Hermetic::Probe::Base

Instance Method Details

#capture(context) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/rspec/hermetic/probe/time.rb', line 9

def capture(context)
  {}.tap do |values|
    capture_clock_offset(values)
    capture_active_support_time_helpers(values, context)
    capture_timecop(values)
  end
end