Class: Fsr::Runner
- Inherits:
-
Object
- Object
- Fsr::Runner
- Defined in:
- lib/fsr.rb
Overview
core runner
Instance Method Summary collapse
-
#initialize(specs, load: []) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(specs, load: []) ⇒ Runner
Returns a new instance of Runner.
70 71 72 73 |
# File 'lib/fsr.rb', line 70 def initialize(specs, load: []) @specs = specs @dependent_files = load end |
Instance Method Details
#run ⇒ Object
75 76 77 78 79 80 |
# File 'lib/fsr.rb', line 75 def run @dependent_files.each { |file| load(file) } Fsr.sandboxed do RSpec::Core::Runner.run(@specs) end end |