Class: FailSpell::SpecRunner
- Inherits:
-
Object
- Object
- FailSpell::SpecRunner
- Defined in:
- lib/failspell/spec_runner.rb
Instance Attribute Summary collapse
-
#spec_path ⇒ Object
readonly
Returns the value of attribute spec_path.
Instance Method Summary collapse
-
#initialize(spec_path) ⇒ SpecRunner
constructor
A new instance of SpecRunner.
- #run ⇒ Object
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_path ⇒ Object (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
#run ⇒ Object
9 10 11 |
# File 'lib/failspell/spec_runner.rb', line 9 def run system "rspec #{spec_path}" end |