Class: Specifier::Runner

Inherits:
Object
  • Object
show all
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

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

#runObject



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