Class: RSpec::Core::Invocations::Bisect

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/core/invocations.rb

Instance Method Summary collapse

Instance Method Details

#call(options, _err, _out) ⇒ Object



29
30
31
32
33
34
35
36
37
38
# File 'lib/rspec/core/invocations.rb', line 29

def call(options, _err, _out)
  RSpec::Support.require_rspec_core "bisect/coordinator"

  success = RSpec::Core::Bisect::Coordinator.bisect_with(
    options.args,
    bisect_formatter_for(options.options[:bisect])
  )

  success ? 0 : 1
end