-
-
Save koraykoska/f1a058c38a3f6c80bbea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "whatever" | |
# Load minitest and red-green | |
group :minitest do | |
gem "minitest" | |
gem "minitest-rg" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Put this in bin/run_tests.rb or something and chmod 755 it | |
# Load bundler | |
require "bundler/setup" | |
Bundler.require :default, :minitest | |
# Load your code | |
require_relative "../lib/my_gem.rb" | |
# Run minitest with ARGV | |
Dir["tests/**/*.rb"].each &method(:load) | |
Minitest.run ARGV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment