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

342
343
344
# File 'lib/rspec/core/notifications.rb', line 342
def seed
  @seed
end

- (Boolean) used

wether the seed has been used or not

Returns:

  • (Boolean)

    the current value of used

342
343
344
# File 'lib/rspec/core/notifications.rb', line 342
def used
  @used
end