test-unit-rails 7.0.0 → 7.0.2
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.md +20 -0
- data/lib/test/unit/rails/test_help.rb +12 -4
- data/lib/test/unit/rails/testing.rake +6 -4
- data/lib/test/unit/rails/version.rb +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d89f7ca2684b1d423a2bcffff94f27e69ff7028694bdc23595407c1821fcadb0
|
4
|
+
data.tar.gz: 5e3ee41f93d1416aed257d4699f38f755df5574eb11717ee3a1755ab37981276
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd8b52fd88bb2459994d4221ab7a5993d22486262db3b96f4e254880c62a786bf738ff4916684581c942c05d552438a3cf707be23455518ebe37448f533717b8
|
7
|
+
data.tar.gz: 3cdb658ec3e0149385a0b8f4f50e589080a808ad119093be9a612782a5511aee12c290e7ea2d6681c6c23403b35f2794676a0faf5a851a4940f0b02c4a190dcf
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 7.0.2 - 2023-06-20 {#version-7-0-2}
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Added support for Rails 4.1-5.1 again.
|
8
|
+
|
9
|
+
## 7.0.1 - 2023-06-14 {#version-7-0-1}
|
10
|
+
|
11
|
+
### Improvements
|
12
|
+
|
13
|
+
* Added support for Rails 7.1.
|
14
|
+
|
15
|
+
[GH-25](https://github.com/test-unit/test-unit-rails/issues/25)
|
16
|
+
|
17
|
+
Patch by Akira Matsuda
|
18
|
+
|
19
|
+
### Thanks
|
20
|
+
|
21
|
+
* Akira Matsuda
|
22
|
+
|
3
23
|
## 7.0.0 - 2021-12-20 {#version-7-0-0}
|
4
24
|
|
5
25
|
### Improvements
|
@@ -58,7 +58,13 @@ end
|
|
58
58
|
if defined?(ActiveRecord::Base)
|
59
59
|
class ActiveSupport::TestCase
|
60
60
|
include ActiveRecord::TestFixtures
|
61
|
-
|
61
|
+
if respond_to?(:fixture_paths=)
|
62
|
+
self.fixture_paths = ["#{Rails.root}/test/fixtures/"]
|
63
|
+
ActionDispatch::IntegrationTest.fixture_paths = self.fixture_paths
|
64
|
+
else
|
65
|
+
self.fixture_path = "#{Rails.root}/test/fixtures/"
|
66
|
+
ActionDispatch::IntegrationTest.fixture_path = self.fixture_path
|
67
|
+
end
|
62
68
|
|
63
69
|
setup do
|
64
70
|
setup_fixtures
|
@@ -68,8 +74,6 @@ if defined?(ActiveRecord::Base)
|
|
68
74
|
teardown_fixtures
|
69
75
|
end
|
70
76
|
end
|
71
|
-
|
72
|
-
ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
|
73
77
|
end
|
74
78
|
|
75
79
|
class ActionController::TestCase
|
@@ -80,7 +84,11 @@ class ActionController::TestCase
|
|
80
84
|
if defined?(ActiveRecord::Base)
|
81
85
|
include ActiveRecord::TestFixtures
|
82
86
|
|
83
|
-
|
87
|
+
if respond_to?(:fixture_paths=)
|
88
|
+
self.fixture_paths = ["#{Rails.root}/test/fixtures/"]
|
89
|
+
else
|
90
|
+
self.fixture_path = "#{Rails.root}/test/fixtures/"
|
91
|
+
end
|
84
92
|
end
|
85
93
|
end
|
86
94
|
|
@@ -31,10 +31,12 @@ namespace :test do
|
|
31
31
|
"jobs",
|
32
32
|
"system",
|
33
33
|
].each do |component|
|
34
|
-
Rake.application
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
if Rake.application.lookup("test:#{component}")
|
35
|
+
Rake.application["test:#{component}"].clear_actions
|
36
|
+
task component do
|
37
|
+
path = File.expand_path("test/#{component}")
|
38
|
+
Test::Unit::AutoRunner.run(true, "test", [component])
|
39
|
+
end
|
38
40
|
end
|
39
41
|
end
|
40
42
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012-
|
1
|
+
# Copyright (C) 2012-2023 Sutou Kouhei <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -17,7 +17,7 @@
|
|
17
17
|
module Test
|
18
18
|
module Unit
|
19
19
|
module Rails
|
20
|
-
VERSION = "7.0.
|
20
|
+
VERSION = "7.0.2"
|
21
21
|
end
|
22
22
|
end
|
23
23
|
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: 7.0.
|
4
|
+
version: 7.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: test-unit-activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,7 +194,7 @@ homepage: https://github.com/test-unit/test-unit-rails
|
|
194
194
|
licenses:
|
195
195
|
- LGPLv2 or later
|
196
196
|
metadata: {}
|
197
|
-
post_install_message:
|
197
|
+
post_install_message:
|
198
198
|
rdoc_options: []
|
199
199
|
require_paths:
|
200
200
|
- lib
|
@@ -209,8 +209,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
209
|
- !ruby/object:Gem::Version
|
210
210
|
version: '0'
|
211
211
|
requirements: []
|
212
|
-
rubygems_version: 3.
|
213
|
-
signing_key:
|
212
|
+
rubygems_version: 3.5.0.dev
|
213
|
+
signing_key:
|
214
214
|
specification_version: 4
|
215
215
|
summary: test-unit-rails is a Rails adapter for test-unit gem. You can use full test-unit
|
216
216
|
gem features, [RR](https://rubygems.org/gems/rr) integration and [Capybara](https://rubygems.org/gems/capybara)
|