test-unit 3.0.1 → 3.0.2

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: 8e6b544b3144722c004c82e6aec550775d7e477b
4
- data.tar.gz: 2ae270b66e51a35b413e1c58f6f1d96da4891b6c
3
+ metadata.gz: e5e36432202b99f66240352830e7f0905d6af3fe
4
+ data.tar.gz: bb182e15b0c60533e216394a5b5a83c093af57ff
5
5
  SHA512:
6
- metadata.gz: 9121cd8bccc8b1d5443a4342e903ae26cd041f6c27a1cdae2a2dd066eef66f210428d2442d41c096e648ca22bbe95f3c789e114cc2f4b1e28ed1136ed39e8b5b
7
- data.tar.gz: 0b5abeee584291058af1df9dee96e0379a547d194f4bddd90866e4379f2446f6450d35e761475aba8b078c0361114c51fd8c361fb366db4803741e8d04afd35c
6
+ metadata.gz: 227161f5cf91cf319badbcaedb0b2101d033d02b9d354535bc0c7ba0409af84159bec959f769466f21a74899745e022f7e8cfb37cefa6b6910675ada10115848
7
+ data.tar.gz: 4bbeeef520af902014c9d8f416e34a9350d25b88038c2c426253ac201e77d1981b3300922e435068010a35c8796a03a1fc7ee126a3f438e9f7d329242481bd44
data/GPL CHANGED
@@ -1,12 +1,12 @@
1
- GNU GENERAL PUBLIC LICENSE
2
- Version 2, June 1991
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
3
 
4
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
6
  Everyone is permitted to copy and distribute verbatim copies
7
7
  of this license document, but changing it is not allowed.
8
8
 
9
- Preamble
9
+ Preamble
10
10
 
11
11
  The licenses for most software are designed to take away your
12
12
  freedom to share and change it. By contrast, the GNU General Public
@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
15
15
  General Public License applies to most of the Free Software
16
16
  Foundation's software and to any other program whose authors commit to
17
17
  using it. (Some other Free Software Foundation software is covered by
18
- the GNU Library General Public License instead.) You can apply it to
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
19
  your programs, too.
20
20
 
21
21
  When we speak of free software, we are referring to freedom, not
@@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.
55
55
 
56
56
  The precise terms and conditions for copying, distribution and
57
57
  modification follow.
58
-
59
- GNU GENERAL PUBLIC LICENSE
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
60
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
61
 
62
62
  0. This License applies to any program or other work which contains
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
110
110
  License. (Exception: if the Program itself is interactive but
111
111
  does not normally print such an announcement, your work based on
112
112
  the Program is not required to print an announcement.)
113
-
113
+
114
114
  These requirements apply to the modified work as a whole. If
115
115
  identifiable sections of that work are not derived from the Program,
116
116
  and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
168
168
  access to copy the source code from the same place counts as
169
169
  distribution of the source code, even though third parties are not
170
170
  compelled to copy the source along with the object code.
171
-
171
+
172
172
  4. You may not copy, modify, sublicense, or distribute the Program
173
173
  except as expressly provided under this License. Any attempt
174
174
  otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.
225
225
 
226
226
  This section is intended to make thoroughly clear what is believed to
227
227
  be a consequence of the rest of this License.
228
-
228
+
229
229
  8. If the distribution and/or use of the Program is restricted in
230
230
  certain countries either by patents or by copyrighted interfaces, the
231
231
  original copyright holder who places the Program under this License
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
255
255
  of preserving the free status of all derivatives of our free software and
256
256
  of promoting the sharing and reuse of software generally.
257
257
 
258
- NO WARRANTY
258
+ NO WARRANTY
259
259
 
260
260
  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
261
  FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
277
  PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
278
  POSSIBILITY OF SUCH DAMAGES.
279
279
 
280
- END OF TERMS AND CONDITIONS
281
-
282
- How to Apply These Terms to Your New Programs
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
283
 
284
284
  If you develop a new program, and you want it to be of the greatest
285
285
  possible use to the public, the best way to achieve this is to make it
@@ -303,10 +303,9 @@ the "copyright" line and a pointer to where the full notice is found.
303
303
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
304
  GNU General Public License for more details.
305
305
 
306
- You should have received a copy of the GNU General Public License
307
- along with this program; if not, write to the Free Software
308
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
309
-
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
310
309
 
311
310
  Also add information on how to contact you by electronic and paper mail.
312
311
 
@@ -336,5 +335,5 @@ necessary. Here is a sample; alter the names:
336
335
  This General Public License does not permit incorporating your program into
337
336
  proprietary programs. If your program is a subroutine library, you may
338
337
  consider it more useful to permit linking proprietary applications with the
339
- library. If this is what you want to do, use the GNU Library General
338
+ library. If this is what you want to do, use the GNU Lesser General
340
339
  Public License instead of this License.
data/README.md CHANGED
@@ -8,12 +8,12 @@
8
8
 
9
9
  ## Description
10
10
 
11
- test-unit - Improved version of Test::Unit bundled in Ruby
12
- 1.8.x.
11
+ An xUnit family unit testing framework for Ruby.
13
12
 
14
- Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit
15
- bundled in Ruby 1.8.x had not been improved but unbundled
16
- Test::Unit (test-unit) is improved actively.
13
+ Test::Unit (test-unit) is unit testing framework for Ruby, based on xUnit
14
+ principles. These were originally designed by Kent Beck, creator of extreme
15
+ programming software development methodology, for Smalltalk's SUnit. It allows
16
+ writing tests, checking results and automated testing in Ruby.
17
17
 
18
18
  ## Features
19
19
 
data/doc/text/news.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # News
2
2
 
3
+ ## 3.0.2 - 2014-10-15 {#version-3-0-2}
4
+
5
+ It's a minor update release.
6
+
7
+ ### Improvements
8
+
9
+ * Supported broken `==` implementation.
10
+ `==` implementation should be fixed but it's not work of test-unit. :<
11
+ [GitHub#71][Reported by Emily]
12
+ * [UI][console]: Accepted no message failure.
13
+ [GitHub#66][Reported by Brian Tatnall]
14
+ * Updated gem description.
15
+ [GitHub#74][Patch by Vít Ondruch]
16
+ * Updated GPL text.
17
+ [GitHub#78][Patch by Vít Ondruch]
18
+
19
+ ### Fixes
20
+
21
+ * Removed needless executable bit from README file.
22
+ [GitHub#79][Patch by Vít Ondruch]
23
+
24
+ ### Thanks
25
+
26
+ * Emily
27
+ * Brian Tatnall
28
+ * Vít Ondruch
29
+
3
30
  ## 3.0.1 - 2014-08-05 {#version-3-0-1}
4
31
 
5
32
  It's a minor update release.
@@ -128,7 +128,7 @@ module Test
128
128
  # @return [void]
129
129
  def assert(object=NOT_SPECIFIED, message=nil, &block)
130
130
  _wrap_assertion do
131
- have_object = (object != NOT_SPECIFIED)
131
+ have_object = !NOT_SPECIFIED.equal?(object)
132
132
  if block
133
133
  message = object if have_object
134
134
  if defined?(PowerAssert)
@@ -184,12 +184,7 @@ module Test
184
184
  output(": #{fault.test_name}")
185
185
  output_fault_message(fault)
186
186
  else
187
- if fault.message.include?("\n")
188
- output(":")
189
- output_fault_message(fault)
190
- else
191
- output(": #{fault.message}")
192
- end
187
+ output_fault_message(fault)
193
188
  output(fault.test_name)
194
189
  end
195
190
  output_fault_backtrace(fault)
@@ -197,8 +192,16 @@ module Test
197
192
  end
198
193
 
199
194
  def output_fault_message(fault)
200
- fault.message.each_line do |line|
201
- output(" #{line.chomp}")
195
+ message = fault.message
196
+ return if message.nil?
197
+
198
+ if message.include?("\n")
199
+ output(":")
200
+ message.each_line do |line|
201
+ output(" #{line.chomp}")
202
+ end
203
+ else
204
+ output(": #{message}")
202
205
  end
203
206
  end
204
207
 
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = '3.0.1'
3
+ VERSION = '3.0.2'
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.0.1
4
+ version: 3.0.2
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: 2014-08-05 00:00:00.000000000 Z
12
+ date: 2014-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: power_assert
@@ -96,9 +96,10 @@ dependencies:
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  description: |
99
- Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit
100
- bundled in Ruby 1.8.x had not been improved but unbundled
101
- Test::Unit (test-unit) is improved actively.
99
+ Test::Unit (test-unit) is unit testing framework for Ruby, based on xUnit
100
+ principles. These were originally designed by Kent Beck, creator of extreme
101
+ programming software development methodology, for Smalltalk's SUnit. It allows
102
+ writing tests, checking results and automated testing in Ruby.
102
103
  email:
103
104
  - kou@cozmixng.org
104
105
  - yoshihara@clear-code.com
@@ -231,46 +232,46 @@ rubyforge_project:
231
232
  rubygems_version: 2.2.2
232
233
  signing_key:
233
234
  specification_version: 4
234
- summary: test-unit - Improved version of Test::Unit bundled in Ruby 1.8.x.
235
+ summary: An xUnit family unit testing framework for Ruby.
235
236
  test_files:
237
+ - test/test-failure.rb
238
+ - test/test-emacs-runner.rb
236
239
  - test/test-assertions.rb
237
- - test/test-color.rb
240
+ - test/test-fault-location-detector.rb
241
+ - test/test-test-suite.rb
238
242
  - test/test-code-snippet.rb
239
- - test/test-test-suite-creator.rb
240
- - test/test-test-result.rb
243
+ - test/test-attribute.rb
244
+ - test/test-omission.rb
241
245
  - test/test-error.rb
242
- - test/test-failure.rb
243
- - test/run-test.rb
244
- - test/test-pending.rb
245
- - test/test-color-scheme.rb
246
- - test/test-attribute-matcher.rb
247
- - test/testunit-test-util.rb
248
- - test/test-data.rb
249
- - test/ui/test_testrunmediator.rb
246
+ - test/test-priority.rb
247
+ - test/collector/test_objectspace.rb
248
+ - test/collector/test-load.rb
249
+ - test/collector/test-descendant.rb
250
+ - test/collector/test_dir.rb
251
+ - test/util/test_backtracefilter.rb
250
252
  - test/util/test-method-owner-finder.rb
251
253
  - test/util/test-output.rb
252
- - test/util/test_observable.rb
253
- - test/util/test_backtracefilter.rb
254
254
  - test/util/test_procwrapper.rb
255
- - test/test-omission.rb
256
- - test/test-test-case.rb
257
- - test/test-fixture.rb
258
- - test/fixtures/no-header.csv
255
+ - test/util/test_observable.rb
256
+ - test/test-diff.rb
257
+ - test/ui/test_testrunmediator.rb
258
+ - test/test-color-scheme.rb
259
+ - test/fixtures/header.tsv
259
260
  - test/fixtures/header-label.tsv
260
- - test/fixtures/plus.csv
261
261
  - test/fixtures/no-header.tsv
262
262
  - test/fixtures/header-label.csv
263
+ - test/fixtures/plus.csv
263
264
  - test/fixtures/header.csv
264
- - test/fixtures/header.tsv
265
- - test/collector/test-descendant.rb
266
- - test/collector/test_objectspace.rb
267
- - test/collector/test-load.rb
268
- - test/collector/test_dir.rb
269
- - test/test-priority.rb
270
- - test/test-test-suite.rb
271
- - test/test-diff.rb
272
- - test/test-emacs-runner.rb
273
- - test/test-attribute.rb
274
- - test/test-fault-location-detector.rb
265
+ - test/fixtures/no-header.csv
266
+ - test/test-test-result.rb
267
+ - test/testunit-test-util.rb
268
+ - test/run-test.rb
269
+ - test/test-test-suite-creator.rb
270
+ - test/test-attribute-matcher.rb
271
+ - test/test-test-case.rb
272
+ - test/test-pending.rb
275
273
  - test/test-notification.rb
274
+ - test/test-fixture.rb
275
+ - test/test-data.rb
276
+ - test/test-color.rb
276
277
  has_rdoc: