top_tests 0.0.2 → 0.0.3

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  module TopTests
4
4
 
5
- VERSION = '0.0.2'.freeze
5
+ VERSION = '0.0.3'.freeze
6
6
 
7
7
  end
8
8
 
data/lib/top_tests.rb CHANGED
@@ -48,7 +48,7 @@ module TopTests
48
48
  end
49
49
 
50
50
  def slow_tests
51
- max_duration ? top_tests.find_all { |t| top_tests.first.last > max_duration } : []
51
+ max_duration ? top_tests.find_all { |t| t.last > max_duration } : []
52
52
  end
53
53
 
54
54
  def format_tests(tests)
@@ -64,7 +64,7 @@ module TopTests
64
64
  def check_tests_duration
65
65
  if !slow_tests.empty?
66
66
  puts "\nTEST?FAIL! #{slow_tests.count} test(s) are taking longer than #{max_duration} seconds:"
67
- puts format_tests(top_tests)
67
+ puts format_tests(slow_tests)
68
68
  puts
69
69
  exit 1
70
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: top_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: