Class: RSpec::Hermetic::Probe::Randomness

Inherits:
Base
  • Object
show all
Defined in:
lib/rspec/hermetic/probe/randomness.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



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

def capture(_context)
  {}.tap do |values|
    capture_default_random(values)
    capture_srand_seed(values) if @configuration.randomness_seed_probe
    capture_factory_bot_sequences(values)
  end
end