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



339
340
341
# File 'lib/rspec/core/notifications.rb', line 339

def seed
  @seed
end

- (Boolean) used

wether the seed has been used or not

Returns:

  • (Boolean)

    the current value of used



339
340
341
# File 'lib/rspec/core/notifications.rb', line 339

def used
  @used
end