minitest 2.11.3 → 2.11.4
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +11 -0
- data/README.txt +41 -1
- data/lib/minitest/spec.rb +7 -1
- data/lib/minitest/unit.rb +1 -1
- data/test/test_minitest_spec.rb +4 -2
- metadata +9 -9
- metadata.gz.sig +1 -4
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
=== 2.11.4 / 2012-03-20
|
2
|
+
|
3
|
+
* 2 minor enhancements:
|
4
|
+
|
5
|
+
* Updated known extensions
|
6
|
+
* You got your unicode in my tests! You got your tests in my unicode! (fl00r)
|
7
|
+
|
8
|
+
* 1 bug fix:
|
9
|
+
|
10
|
+
* Fixed MiniTest::Mock example in the readme. (conradwt)
|
11
|
+
|
1
12
|
=== 2.11.3 / 2012-02-29
|
2
13
|
|
3
14
|
* 2 bug fixes:
|
data/README.txt
CHANGED
@@ -118,6 +118,7 @@ Given that you'd like to test the following class:
|
|
118
118
|
end
|
119
119
|
|
120
120
|
For matchers support check out:
|
121
|
+
|
121
122
|
https://github.com/zenspider/minitest-matchers
|
122
123
|
|
123
124
|
=== Benchmarks
|
@@ -170,7 +171,7 @@ Output is tab-delimited to make it easy to paste into a spreadsheet.
|
|
170
171
|
|
171
172
|
def ask(question)
|
172
173
|
method = question.tr(" ","_") + "?"
|
173
|
-
@meme.
|
174
|
+
@meme.__send__(method)
|
174
175
|
end
|
175
176
|
end
|
176
177
|
|
@@ -245,6 +246,45 @@ fixture loading:
|
|
245
246
|
|
246
247
|
MiniTest::Unit.runner = MiniTestWithTransactions::Unit.new
|
247
248
|
|
249
|
+
== Known Extensions:
|
250
|
+
|
251
|
+
minitest-capistrano :: Assertions and expectations for testing Capistrano recipes
|
252
|
+
minitest-capybara :: Capybara matchers support for minitest unit and spec
|
253
|
+
minitest-chef-handler :: Run Minitest suites as Chef report handlers
|
254
|
+
minitest-ci :: CI reporter plugin for MiniTest.
|
255
|
+
minitest-colorize :: Colorize MiniTest output and show failing tests instantly.
|
256
|
+
minitest-context :: Defines contexts for code reuse in MiniTest
|
257
|
+
specs that share common expectations.
|
258
|
+
minitest-debugger :: Wraps assert so failed assertions drop into
|
259
|
+
the ruby debugger.
|
260
|
+
minitest-display :: Patches MiniTest to allow for an easily configurable output.
|
261
|
+
minitest-emoji :: Print out emoji for your test passes, fails, and skips.
|
262
|
+
minitest-excludes :: Clean API for excluding certain tests you
|
263
|
+
don't want to run under certain conditions.
|
264
|
+
minitest-firemock :: Makes your MiniTest mocks more resilient.
|
265
|
+
minitest-growl :: Test notifier for minitest via growl.
|
266
|
+
minitest-instrument :: Instrument ActiveSupport::Notifications when
|
267
|
+
test method is executed
|
268
|
+
minitest-instrument-db :: Store information about speed of test
|
269
|
+
execution provided by minitest-instrument in database
|
270
|
+
minitest-libnotify :: Test notifier for minitest via libnotify.
|
271
|
+
minitest-macruby :: Provides extensions to minitest for macruby UI testing.
|
272
|
+
minitest-matchers :: Adds support for RSpec-style matchers to minitest.
|
273
|
+
minitest-metadata :: Annotate tests with metadata (key-value).
|
274
|
+
minitest-mongoid :: Mongoid assertion matchers for MiniTest
|
275
|
+
minitest-must_not :: Provides must_not as an alias for wont in MiniTest
|
276
|
+
minitest-predicates :: Adds support for .predicate? methods
|
277
|
+
minitest-pry :: A minitest plugin to drop into pry on assertion failure.
|
278
|
+
minitest-rails :: MiniTest integration for Rails 3.1.
|
279
|
+
minitest-reporters :: Create customizable MiniTest output formats
|
280
|
+
minitest-rg :: redgreen minitest
|
281
|
+
minitest-spec-magic :: Minitest::Spec extensions for Rails and beyond
|
282
|
+
minitest-tags :: add tags for minitest
|
283
|
+
minitest-wscolor :: Yet another test colorizer.
|
284
|
+
minitest_owrapper :: Get tests results as a TestResult object.
|
285
|
+
minitest_should :: Shoulda style syntax for minitest test::unit.
|
286
|
+
minitest_tu_shim :: minitest_tu_shim bridges between test/unit and minitest.
|
287
|
+
|
248
288
|
== REQUIREMENTS:
|
249
289
|
|
250
290
|
* Ruby 1.8, maybe even 1.6 or lower. No magic is involved.
|
data/lib/minitest/spec.rb
CHANGED
@@ -174,6 +174,12 @@ class MiniTest::Spec < MiniTest::Unit::TestCase
|
|
174
174
|
add_teardown_hook {|tc| tc.instance_eval(&block) }
|
175
175
|
end
|
176
176
|
|
177
|
+
NAME_RE = if RUBY_VERSION >= "1.9"
|
178
|
+
Regexp.new("[^[[:word:]]]+")
|
179
|
+
else
|
180
|
+
/\W+/u
|
181
|
+
end
|
182
|
+
|
177
183
|
##
|
178
184
|
# Define an expectation with name +desc+. Name gets morphed to a
|
179
185
|
# proper test method name. For some freakish reason, people who
|
@@ -191,7 +197,7 @@ class MiniTest::Spec < MiniTest::Unit::TestCase
|
|
191
197
|
@specs ||= 0
|
192
198
|
@specs += 1
|
193
199
|
|
194
|
-
name = "test_%04d_%s" % [ @specs, desc.gsub(
|
200
|
+
name = "test_%04d_%s" % [ @specs, desc.gsub(NAME_RE, '_').downcase ]
|
195
201
|
|
196
202
|
define_method name, &block
|
197
203
|
|
data/lib/minitest/unit.rb
CHANGED
data/test/test_minitest_spec.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require 'minitest/autorun'
|
2
3
|
require 'stringio'
|
3
4
|
|
@@ -683,12 +684,13 @@ class TestMeta < MiniTest::Unit::TestCase
|
|
683
684
|
y = describe "first thingy" do end
|
684
685
|
|
685
686
|
it "top-level-it" do end
|
687
|
+
it "не латинские буквы-и-спецсимволы&いった α, β, γ, δ, ε hello!!! world" do end
|
686
688
|
|
687
689
|
z = describe "second thingy" do end
|
688
690
|
end
|
689
691
|
|
690
|
-
assert_equal ['test_0001_top_level_it'],
|
691
|
-
x.instance_methods.grep(/^test/).map {|o| o.to_s}
|
692
|
+
assert_equal ['test_0001_top_level_it', 'test_0002_не_латинские_буквы_и_спецсимволы_いった_α_β_γ_δ_ε_hello_world'].sort,
|
693
|
+
x.instance_methods.grep(/^test/).map {|o| o.to_s}.sort
|
692
694
|
assert_equal [], y.instance_methods.grep(/^test/)
|
693
695
|
assert_equal [], z.instance_methods.grep(/^test/)
|
694
696
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 43
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 2.11.
|
9
|
+
- 4
|
10
|
+
version: 2.11.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Davis
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
FBHgymkyj/AOSqKRIpXPhjC6
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date: 2012-03-
|
39
|
+
date: 2012-03-21 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rdoc
|
@@ -61,11 +61,11 @@ dependencies:
|
|
61
61
|
requirements:
|
62
62
|
- - ~>
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
hash:
|
64
|
+
hash: 7
|
65
65
|
segments:
|
66
|
-
-
|
67
|
-
-
|
68
|
-
version: "
|
66
|
+
- 3
|
67
|
+
- 0
|
68
|
+
version: "3.0"
|
69
69
|
type: :development
|
70
70
|
version_requirements: *id002
|
71
71
|
description: |-
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
requirements: []
|
172
172
|
|
173
173
|
rubyforge_project: bfts
|
174
|
-
rubygems_version: 1.8.
|
174
|
+
rubygems_version: 1.8.17
|
175
175
|
signing_key:
|
176
176
|
specification_version: 3
|
177
177
|
summary: minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking
|
metadata.gz.sig
CHANGED