Skip to content

Instantly share code, notes, and snippets.

@raulb
Created June 14, 2020 20:48
Show Gist options
  • Save raulb/0b7fc2a7207d7dede1cf847bba3ccd56 to your computer and use it in GitHub Desktop.
Save raulb/0b7fc2a7207d7dede1cf847bba3ccd56 to your computer and use it in GitHub Desktop.
guard :minitest, test_folders: '.' do
  watch(/.*/) do |m|
    file = m[0].split('.rb')[0]
    file += "_test" unless file.end_with?("_test")
    "./#{file}.rb"
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment