Class: RSpec::Core::Bisect::ExampleMinimizer::ExampleRange

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/core/bisect/example_minimizer.rb

Overview

Convenience class for describing a subset of the candidate examples

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#finishObject

Returns the value of attribute finish

Returns:

  • (Object)

    the current value of finish



94
95
96
# File 'lib/rspec/core/bisect/example_minimizer.rb', line 94

def finish
  @finish
end

#startObject

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



94
95
96
# File 'lib/rspec/core/bisect/example_minimizer.rb', line 94

def start
  @start
end

Instance Method Details

#descriptionObject



95
96
97
98
99
100
101
# File 'lib/rspec/core/bisect/example_minimizer.rb', line 95

def description
  if start == finish
    "example #{start}"
  else
    "examples #{start}-#{finish}"
  end
end