Class: SmartTest::SpecRunner
- Inherits:
-
Object
- Object
- SmartTest::SpecRunner
- Defined in:
- lib/smart_test/spec_runner.rb
Instance Method Summary collapse
- #cmd ⇒ Object
- #files ⇒ Object
-
#initialize(root, options = {}) ⇒ SpecRunner
constructor
A new instance of SpecRunner.
- #run ⇒ Object
Constructor Details
Instance Method Details
#cmd ⇒ Object
23 24 25 |
# File 'lib/smart_test/spec_runner.rb', line 23 def cmd @cmd ||= "bundle exec rspec #{files.join(' ')}" end |
#files ⇒ Object
15 16 17 |
# File 'lib/smart_test/spec_runner.rb', line 15 def files @files ||= @filter.send @options[:type], @options[:param] end |
#run ⇒ Object
19 20 21 |
# File 'lib/smart_test/spec_runner.rb', line 19 def run system cmd end |