module Maxitest::Testrbl

def self.changed_files

def self.changed_files
  changed_files = `git status -s`.split("\n").map { |l| l.strip.split(/\s+/, 2)[1] }
  raise "Failed: #{changed_files}" unless $?.success?
  changed_files.select { |f| f =~ /_(test|spec)\.rb$/ && File.exist?(f) }
end