test-unit 3.2.5 → 3.2.6

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: 367cf38cdec937cd00374b17aeddd2cd85271223
4
- data.tar.gz: 66d1270f41f63a6d324c419cb91cb8e4a4e66fed
3
+ metadata.gz: 9ddfe122387606bd5c9d06ffa5943907756becf3
4
+ data.tar.gz: bee7b843682d5aebca132166cc005e8f534fb55d
5
5
  SHA512:
6
- metadata.gz: 546256249a6ac765e2789a60feec91fd97ec4e66cbcf951897085bf378b435f81a548be56381c22ecdddda0e491b63adcacda90b74d916865f82cb4848e60098
7
- data.tar.gz: 4e17e054bd8cdf04b401d7aee9205403be33c7a9a9e0fd7244d468897db61f5aecf9b25f4bdd3a03a75409faa8e56c6eece579b5eebab7accc1a1e48cff9f51b
6
+ metadata.gz: 6b6d4e183f16c8e931f1ca02fb179e45857ea539cfe5a6efe448c7a24caeb691bc6cda85f0ce90305522df2db5fab8a1c39e856ef4bc1e22663863acb9364813
7
+ data.tar.gz: 5b87675676f620d09cc4580f40f8d8677e91ed9eb01406d91f098b0037b1a16817f80392a3d8cb7133aeb216d10108f86d5feb8cab7184aceccbea355969c967
@@ -1,5 +1,16 @@
1
1
  # News
2
2
 
3
+ ## 3.2.6 - 2017-09-21 {#version-3-2-6}
4
+
5
+ ### Improvements
6
+
7
+ * Changed test file require failure to error from omission.
8
+ [GitHub#154][Patch by naofumi-fujii]
9
+
10
+ ### Thanks
11
+
12
+ * naofumi-fujii
13
+
3
14
  ## 3.2.5 - 2017-06-24 {#version-3-2-5}
4
15
 
5
16
  ### Improvements
@@ -166,11 +166,11 @@ module Test
166
166
  return if @require_failed_infos.empty?
167
167
 
168
168
  require_failed_infos = @require_failed_infos
169
- require_failed_omissions = Class.new(Test::Unit::TestCase)
170
- require_failed_omissions.class_eval do
169
+ require_failed_errors = Class.new(Test::Unit::TestCase)
170
+ require_failed_errors.class_eval do
171
171
  class << self
172
172
  def name
173
- "RequireFailedOmissions"
173
+ "RequireFailedErrors"
174
174
  end
175
175
  end
176
176
 
@@ -180,21 +180,18 @@ module Test
180
180
  normalized_path = normalized_path.gsub(/\A_+/, '')
181
181
  exception = info[:exception]
182
182
  define_method("test_require_#{normalized_path}") do
183
- @require_failed_exception = exception
184
- omit("failed to load: <#{path}>: <#{exception.message}>")
183
+ raise(exception.class,
184
+ "failed to load <#{path}>: #{exception.message}",
185
+ exception.backtrace)
185
186
  end
186
187
  end
187
188
 
188
189
  def priority
189
190
  100
190
191
  end
191
-
192
- def filter_backtrace(location)
193
- super(@require_failed_exception.backtrace)
194
- end
195
192
  end
196
193
 
197
- add_suite(test_suites, require_failed_omissions.suite)
194
+ add_suite(test_suites, require_failed_errors.suite)
198
195
  end
199
196
  end
200
197
  end
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = "3.2.5"
3
+ VERSION = "3.2.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.5
4
+ version: 3.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-24 00:00:00.000000000 Z
12
+ date: 2017-09-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: power_assert