test-unit-rails 7.0.0 → 7.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.md +14 -0
- data/lib/test/unit/rails/test_help.rb +12 -4
- data/lib/test/unit/rails/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d46e412bbe2fd2980326eb50753abaed5fb01481543a99e1c58ad02f518d471c
|
4
|
+
data.tar.gz: 00440ce2d65df0d843755f1b70c5a7033def981658b04bd28355a7e3ff28d990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4fbd933a02bfe832660eba919d9023301952a4a5828e593bd6db8809ec4f4a5dcfc12cbada97b9544da8b660751fd977f07dae0cd6a2d8e45cdb3a3f948d034
|
7
|
+
data.tar.gz: 1d16b06284fe585fe70402c4d20c4843781f090cad5693dd81e61b00f56e9bea0e8b7e9946d4969effc60b595d7c9f14ef4b474848472df739fd5f098696cc3e
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 7.0.1 - 2023-06-14 {#version-7-0-1}
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Added support for Rails 7.1.
|
8
|
+
|
9
|
+
[GH-25](https://github.com/test-unit/test-unit-rails/issues/25)
|
10
|
+
|
11
|
+
Patch by Akira Matsuda
|
12
|
+
|
13
|
+
### Thanks
|
14
|
+
|
15
|
+
* Akira Matsuda
|
16
|
+
|
3
17
|
## 7.0.0 - 2021-12-20 {#version-7-0-0}
|
4
18
|
|
5
19
|
### 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
|
|
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.1
|
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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -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)
|