micro_test 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/mt +2 -1
  2. metadata +1 -1
data/bin/mt CHANGED
@@ -7,9 +7,10 @@ require File.join(lib_path, "micro_test", "color")
7
7
  include MicroTest::Color
8
8
 
9
9
  opts = Slop.parse(:strict => true, :help => true) do
10
+ formatters = Dir[File.join(lib_path, "micro_test", "formatters", "*.rb")].map {|f| f[f.rindex("/") + 1..-4]}
10
11
  banner "mt [options]"
11
12
  on :p, :path, "The path to the test directory or file.", :argument => true
12
- on :f, :formatter, "The name of the formatter to use.", :argument => true
13
+ on :f, :formatter, "The name of the formatter to use. [#{green formatters.join(", ")}]", :argument => true
13
14
  on :pry, "Starts a pry session whenever tests fail."
14
15
  on :demo, "Runs the MicroTest test suite."
15
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micro_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: