test-unit-rails 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.textile +10 -0
- data/lib/test/unit/rails/testing.rake +74 -0
- data/lib/test/unit/rails/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59b1c936377ee26c94b9ea8237f1f450b8299664
|
4
|
+
data.tar.gz: e442101c03263eba1ca883c962d1aad3a911dd3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 071e81445922d025034e2f57f4ef30cd9b3684cae41a757fcbaeb71d5b19fc7e4314cf2b152faa1bb346f59c2a86e3cf4f0b9ac646a4501c4158fdf4c5c56e88
|
7
|
+
data.tar.gz: 214cedd4ade97cf2abd4736de179169474e573e57aef363da81e5d452f6ec5ea1c9faa96a9cfcb014dd060060d69e82011a7f5bcd54876a28e0284ecbdcb65e7
|
data/doc/text/news.textile
CHANGED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
require "test/unit/autorunner"
|
18
|
+
|
19
|
+
Rake.application[:test].clear_actions
|
20
|
+
task :test do
|
21
|
+
Test::Unit::AutoRunner.run(true, "test", [File.expand_path("test")])
|
22
|
+
end
|
23
|
+
|
24
|
+
namespace :test do
|
25
|
+
[
|
26
|
+
"models",
|
27
|
+
"helpers",
|
28
|
+
"controllers",
|
29
|
+
"mailers",
|
30
|
+
"integration",
|
31
|
+
"jobs",
|
32
|
+
].each do |component|
|
33
|
+
Rake.application["test:#{component}"].clear_actions
|
34
|
+
task component do
|
35
|
+
path = File.expand_path("test/#{component}")
|
36
|
+
Test::Unit::AutoRunner.run(true, "test", [component])
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
[
|
41
|
+
{
|
42
|
+
:name => :generators,
|
43
|
+
:paths => [
|
44
|
+
"lib/generators",
|
45
|
+
],
|
46
|
+
},
|
47
|
+
{
|
48
|
+
:name => :units,
|
49
|
+
:paths => [
|
50
|
+
"models",
|
51
|
+
"helpers",
|
52
|
+
"unit",
|
53
|
+
],
|
54
|
+
},
|
55
|
+
{
|
56
|
+
:name => :functionals,
|
57
|
+
:paths => [
|
58
|
+
"controllers",
|
59
|
+
"mailers",
|
60
|
+
"functional",
|
61
|
+
],
|
62
|
+
},
|
63
|
+
].each do |meta_task|
|
64
|
+
Rake.application["test:#{meta_task[:name]}"].clear_actions
|
65
|
+
task meta_task[:name] do
|
66
|
+
paths = []
|
67
|
+
meta_task[:paths].each do |sub_path|
|
68
|
+
path = File.expand_path("test/#{sub_path}")
|
69
|
+
paths << path if File.exist?(path)
|
70
|
+
end
|
71
|
+
Test::Unit::AutoRunner.run(true, "test", paths)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-unit-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -167,6 +167,7 @@ files:
|
|
167
167
|
- lib/test/unit/rails.rb
|
168
168
|
- lib/test/unit/rails/railtie.rb
|
169
169
|
- lib/test/unit/rails/test_help.rb
|
170
|
+
- lib/test/unit/rails/testing.rake
|
170
171
|
- lib/test/unit/rails/version.rb
|
171
172
|
- test/run-test.rb
|
172
173
|
- test/test_action_controller.rb
|