Class: RSpec::Core::Notifications::SeedNotification
- Inherits:
-
Struct
- Object
- Struct
- RSpec::Core::Notifications::SeedNotification
- Defined in:
- lib/rspec/core/notifications.rb,
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)
-
- (Fixnum) seed
the seed used to randomize ordering.
-
- (Boolean) used
writeonly
whether the seed has been used or not.
Instance Method Summary (collapse)
-
- (String) fully_formatted
The seed information fully formatted in the way that RSpec's built-in formatters emit.
-
- (Boolean) seed_used?
Has the seed been used?.
Instance Attribute Details
- (Fixnum) seed
the seed used to randomize ordering
396 397 398 |
# File 'lib/rspec/core/notifications.rb', line 396 def seed @seed end |
- (Boolean) used=(value)
whether the seed has been used or not
396 397 398 |
# File 'lib/rspec/core/notifications.rb', line 396 def used=(value) @used = value end |
Instance Method Details
- (String) fully_formatted
Returns The seed information fully formatted in the way that RSpec's built-in formatters emit.
407 408 409 |
# File 'lib/rspec/core/notifications.rb', line 407 def fully_formatted "\nRandomized with seed #{seed}\n" end |
- (Boolean) seed_used?
Returns has the seed been used?
400 401 402 |
# File 'lib/rspec/core/notifications.rb', line 400 def seed_used? !!used end |