Class: Specifier::Runner
- Inherits:
-
Object
- Object
- Specifier::Runner
- Defined in:
- lib/specifier/runner.rb
Overview
Handles load and execution of specs.
Usage:
runner = Specifier::Runner.new(paths: "./spec")
runner.run
Instance Method Summary collapse
-
#initialize(paths:) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(paths:) ⇒ Runner
Returns a new instance of Runner.
11 12 13 |
# File 'lib/specifier/runner.rb', line 11 def initialize(paths:) @paths = paths end |
Instance Method Details
#run ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/specifier/runner.rb', line 15 def run @paths.each do |path| load path end Specifier.run Specifier.formatter.summarize end |