minitest-reporters 1.0.17 → 1.0.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5094e1d99a4234ba4c8ccdb75620d40c5a76a7e
4
- data.tar.gz: c30a0b3b3f40ab0953fd5feda3d0721afa0b2660
3
+ metadata.gz: 0a09422c8dc047a458f9470eb685541711e3114d
4
+ data.tar.gz: fe50bb460ede6b6ac28b1974bea0fc6845424a96
5
5
  SHA512:
6
- metadata.gz: 317881d29f0b6aa0bd0a66ce2ac8b6bd127557f2221174a117937924f18ca67e7e9dd0b49f2c57f97084ac6eebf22149c167ea7aadf492853dfaea144e51239a
7
- data.tar.gz: 6c7a4da3bea948f5ad61f9998cfa717dd061b2da3fefc54bbfa7f3566181a56b08f0f81f8ad039fb2aa3dc5af4f70b9240b90d6c115c0427224082e27ea12fca
6
+ metadata.gz: 4bafc6d01fb44ad81bb2c65acbef27ffd9b01d8544501a1921f839c9cef5dcda8617d76c9768a4090fc48687994a0b3b5256b1df4338e70c230d3508cc3d6604
7
+ data.tar.gz: 291cf234cd9b19c8dc817ba1ff7ee611bd2769fd7bd3544d41269ef11c1120beed66a73b2701947556ab3d1c2ec10799873a72165efb655414b4239cc8c98f18
@@ -58,7 +58,7 @@ module Minitest
58
58
  [RubyMateReporter.new]
59
59
  elsif env["RM_INFO"] || env["TEAMCITY_VERSION"]
60
60
  [RubyMineReporter.new]
61
- else
61
+ elsif !env["VIM"]
62
62
  Array(console_reporters)
63
63
  end
64
64
  end
@@ -89,8 +89,12 @@ module Minitest
89
89
  print "#{e.exception.class.to_s}: " if name
90
90
  e.message.each_line { |line| print_with_info_padding(line) }
91
91
 
92
- trace = filter_backtrace(e.backtrace)
93
- trace.each { |line| print_with_info_padding(line) }
92
+ # When e is a Minitest::UnexpectedError, the filtered backtrace is already part of the message printed out
93
+ # by the previous line. In that case, and that case only, skip the backtrace output.
94
+ unless e.is_a?(MiniTest::UnexpectedError)
95
+ trace = filter_backtrace(e.backtrace)
96
+ trace.each { |line| print_with_info_padding(line) }
97
+ end
94
98
  end
95
99
  end
96
100
  end
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Reporters
3
- VERSION = '1.0.17'
3
+ VERSION = '1.0.18'
4
4
  end
5
5
  end
@@ -12,6 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.summary = %q{Create customizable Minitest output formats}
13
13
  s.description = %q{Death to haphazard monkey-patching! Extend Minitest through simple hooks.}
14
14
 
15
+ s.required_ruby_version = '>= 1.9.3'
15
16
  s.rubyforge_project = 'minitest-reporters'
16
17
 
17
18
  s.add_dependency 'minitest', '>= 5.0'
@@ -24,5 +24,11 @@ module MinitestReportersTest
24
24
  reporters = Minitest::Reporters.choose_reporters [Minitest::Reporters::SpecReporter.new], {}
25
25
  assert_instance_of Minitest::Reporters::SpecReporter, reporters[0]
26
26
  end
27
+
28
+ def test_chooses_no_reporters_when_running_under_vim
29
+ reporters = Minitest::Reporters.choose_reporters(
30
+ [Minitest::Reporters::DefaultReporter.new], { "VIM" => "/usr/share/vim" })
31
+ assert_equal nil, reporters
32
+ end
27
33
  end
28
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-reporters
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-10 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - ">="
152
152
  - !ruby/object:Gem::Version
153
- version: '0'
153
+ version: 1.9.3
154
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="