Class: RSpec::Core::Notifications::SeedNotification

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/core/notifications.rb

Overview

The SeedNotification holds the seed used to randomize examples and whether that seed has been used or not.

Instance Attribute Summary collapse

Instance Attribute Details

#seedFixnum

the seed used to randomize ordering

Returns:

  • (Fixnum)

    the current value of seed



324
325
326
# File 'lib/rspec/core/notifications.rb', line 324

def seed
  @seed
end

#usedBoolean

whether the seed has been used or not

Returns:

  • (Boolean)

    the current value of used



324
325
326
# File 'lib/rspec/core/notifications.rb', line 324

def used
  @used
end