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 wether that seed has been used or not.

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Fixnum) seed

the seed used to randomize ordering

Returns:

  • (Fixnum)

    the current value of seed



331
332
333
# File 'lib/rspec/core/notifications.rb', line 331

def seed
  @seed
end

- (Boolean) used

wether the seed has been used or not

Returns:

  • (Boolean)

    the current value of used



331
332
333
# File 'lib/rspec/core/notifications.rb', line 331

def used
  @used
end