module Maxitest::Testrbl
def changed_files
def 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