Class: Fsr::Runner

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

Overview

core runner

Instance Method Summary collapse

Constructor Details

#initialize(specs, load: []) ⇒ Runner

Returns a new instance of Runner.



51
52
53
54
# File 'lib/fsr.rb', line 51

def initialize(specs, load: [])
  @specs = specs
  @dependent_files = load
end

Instance Method Details

#runObject



56
57
58
59
60
61
# File 'lib/fsr.rb', line 56

def run
  @dependent_files.each { |file| load(file) }
  Fsr.sandboxed do
    RSpec::Core::Runner.run(@specs)
  end
end