Class: RSpec::Optimal::Runner

Inherits:
Optimal::CI::Runner show all
Defined in:
lib/rspec/optimal/runner.rb

Instance Method Summary collapse

Methods inherited from Optimal::CI::Runner

#initialize, #run, #total_files

Constructor Details

This class inherits a constructor from Optimal::CI::Runner

Instance Method Details

#commandObject



4
5
6
# File 'lib/rspec/optimal/runner.rb', line 4

def command
  'bundle exec rspec'
end

#dirObject



8
9
10
# File 'lib/rspec/optimal/runner.rb', line 8

def dir
  'spec'
end

#files_end_withObject



12
13
14
# File 'lib/rspec/optimal/runner.rb', line 12

def files_end_with
  "_spec.rb"
end

#run_examples(examples) ⇒ Object



16
17
18
19
# File 'lib/rspec/optimal/runner.rb', line 16

def run_examples(examples)
  RSpec::Core::Runner.run(examples)
  RSpec.clear_examples
end