Class: RSpec::Optimal::Runner
Instance Method Summary
collapse
#initialize, #run, #total_files
Instance Method Details
#command ⇒ Object
4
5
6
|
# File 'lib/rspec/optimal/runner.rb', line 4
def command
'bundle exec rspec'
end
|
#dir ⇒ Object
8
9
10
|
# File 'lib/rspec/optimal/runner.rb', line 8
def dir
'spec'
end
|
#files_end_with ⇒ Object
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
|