Skip to content

Instantly share code, notes, and snippets.

@brandonhilkert
Forked from ntl/Gemfile
Last active January 12, 2016 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brandonhilkert/e5388af909a7d3c494fe to your computer and use it in GitHub Desktop.
Save brandonhilkert/e5388af909a7d3c494fe to your computer and use it in GitHub Desktop.
source "https://rubygems.org"
gem "whatever"
# Load minitest and red-green
group :minitest do
gem "minitest"
gem "minitest-rg"
end
#!/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