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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a27fa94bd179bccf62c15919bcc7cccb3852d1ef3453494c4ff84d2a6757c9aa
4
- data.tar.gz: e4dd133123bb2484f0efff4e06d53dfa217071dff1a697921623228785a09404
3
+ metadata.gz: d89f7ca2684b1d423a2bcffff94f27e69ff7028694bdc23595407c1821fcadb0
4
+ data.tar.gz: 5e3ee41f93d1416aed257d4699f38f755df5574eb11717ee3a1755ab37981276
5
5
  SHA512:
6
- metadata.gz: 48dc673edefb28ebb9faa0a22fad368fe59ddc292d35a953a92b58e6475b472eae40f4914c9f431246cc9e8c702e9f411fb890d61cd92cc97ce1a5e79d64be5f
7
- data.tar.gz: 6d3fd26cd33aa2465526c7ab197548e05eb5623276465458345bb3aed6233f143183b0638ccd39770b453fce1f6dbfeea47e42a9ee9aacd2435e350d90d389a1
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
- self.fixture_path = "#{Rails.root}/test/fixtures/"
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
- self.fixture_path = "#{Rails.root}/test/fixtures/"
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["test:#{component}"].clear_actions
35
- task component do
36
- path = File.expand_path("test/#{component}")
37
- Test::Unit::AutoRunner.run(true, "test", [component])
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-2021 Sutou Kouhei <kou@clear-code.com>
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.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.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: 2021-12-20 00:00:00.000000000 Z
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: 5.2.0
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: 5.2.0
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.3.0.dev
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)