Method: RSpec::Core::Example#id

Defined in:
lib/rspec/core/example.rb

#idString

Returns the unique id of this example. Pass this at the command line to re-run this exact example.

Returns:

  • (String)

    the unique id of this example. Pass this at the command line to re-run this exact example.

[View source]

117
118
119
# File 'lib/rspec/core/example.rb', line 117

def id
  @id ||= Metadata.id_from()
end