Class: RepeatTest::RspecRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/repeat_test/rspec_runner.rb

Overview

RspecRunner class to run RSpec

Instance Method Summary collapse

Constructor Details

#initialize(options:, files:) ⇒ RspecRunner

Returns a new instance of RspecRunner.



6
7
8
9
# File 'lib/repeat_test/rspec_runner.rb', line 6

def initialize(options:, files:)
  @options = options
  @files = files
end

Instance Method Details

#runObject



11
12
13
# File 'lib/repeat_test/rspec_runner.rb', line 11

def run
  system("bundle exec rspec #{files} #{options}")
end