Module: Testdiff::Rspec

Defined in:
lib/testdiff/rspec.rb

Overview

Runs Rspec on modified files

Class Method Summary collapse

Class Method Details

.runObject



8
9
10
11
12
13
14
15
16
# File 'lib/testdiff/rspec.rb', line 8

def run
  puts 'Running RSpec on modified files...'
  files = Testdiff::Modified::Specs.find
  if files.any?
    exec "rspec #{files.join(' ')}"
  else
    puts 'No modified specs.'
  end
end