micro_test 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/bin/mt +5 -5
  2. data/lib/micro_test/runner.rb +1 -1
  3. metadata +1 -1
data/bin/mt CHANGED
@@ -51,12 +51,12 @@ if MicroTest::PRY
51
51
  require "pry-stack_explorer"
52
52
  # require "pry-exception_explorer"
53
53
  Pry.config.hooks.add_hook :before_session, :print_instructions do
54
- puts "".rjust(40, "-")
55
- puts "test '#{MicroTest::Runner.current_test}' #{red "FAIL"}"
56
- puts "".rjust(40, "-")
54
+ puts "".rjust(80, "-")
55
+ puts "#{MicroTest::Runner.current_test} #{red "FAIL"}"
56
+ puts
57
57
  puts "Type #{yellow "up"} to see the line that failed... then"
58
- puts " #{magenta "whereami 10"} for more context."
59
- puts " #{magenta "edit-method"} to make the fix."
58
+ puts " #{magenta "whereami 10"} for more context"
59
+ puts " #{magenta "edit-method"} to make the fix"
60
60
  end
61
61
  # EE.enabled = true
62
62
  # EE.intercept do |frame , ex|
@@ -47,7 +47,7 @@ module MicroTest
47
47
  test_class.invoke :before, :all
48
48
 
49
49
  test_class.tests.keys.shuffle.each do |desc|
50
- @current_test = desc
50
+ @current_test = "#{test_class.name} -> test #{desc}"
51
51
  @failed = false
52
52
  @asserts = []
53
53
  test_class.invoke :before, :each
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.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: