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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a09422c8dc047a458f9470eb685541711e3114d
|
4
|
+
data.tar.gz: fe50bb460ede6b6ac28b1974bea0fc6845424a96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bafc6d01fb44ad81bb2c65acbef27ffd9b01d8544501a1921f839c9cef5dcda8617d76c9768a4090fc48687994a0b3b5256b1df4338e70c230d3508cc3d6604
|
7
|
+
data.tar.gz: 291cf234cd9b19c8dc817ba1ff7ee611bd2769fd7bd3544d41269ef11c1120beed66a73b2701947556ab3d1c2ec10799873a72165efb655414b4239cc8c98f18
|
data/lib/minitest/reporters.rb
CHANGED
@@ -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
|
-
|
93
|
-
|
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
|
data/minitest-reporters.gemspec
CHANGED
@@ -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.
|
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-
|
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:
|
153
|
+
version: 1.9.3
|
154
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - ">="
|