# frozen_string_literal: true

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'minitest' do
  # with Minitest::Unit
  watch(%r{^test/(.*)/(.*)_test\.rb})
  watch(%r{^lib/(.*)\.rb}) { |m| "test/lib/#{m[1]}_test.rb" }
  watch(%r{^test/test_helper\.rb}) { 'test' }
end

guard :bundler do
  watch('Gemfile')
  watch(/^.+\.gemspec/)
end
