Class: FailSpell::SpecRunner

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spec_path) ⇒ SpecRunner

Returns a new instance of SpecRunner.



5
6
7
# File 'lib/failspell/spec_runner.rb', line 5

def initialize(spec_path)
  @spec_path = spec_path
end

Instance Attribute Details

#spec_pathObject (readonly)

Returns the value of attribute spec_path.



3
4
5
# File 'lib/failspell/spec_runner.rb', line 3

def spec_path
  @spec_path
end

Instance Method Details

#runObject



9
10
11
# File 'lib/failspell/spec_runner.rb', line 9

def run
  system "rspec #{spec_path}"
end