minitest-rails 6.0.0 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b921c3dd87d259d36fef0caca313703d54e2511424345bd690e68b1e0038f01
4
- data.tar.gz: 78364825ca897c29a24088661f030e23f5f28f0975b03b4f57572ae2fbdf5383
3
+ metadata.gz: 5a5c0bcb43ca14e46822b35c3276cea42f94f032cf92466d38d96952bfd95a98
4
+ data.tar.gz: c898d3af4147d27ab9cf405c7da3c94b4d559e44db2468b4fdf71da578bd7f76
5
5
  SHA512:
6
- metadata.gz: ee206d7fc8327c9a2973f7b94ccd9a626e9d2e21874bde6d6d5441ae8d41e2e3c45b26c7799317beebf017d05c0213611ef59383954f46a7c7c49c526bcd3acb
7
- data.tar.gz: '08df3ca3da5a524c8779d00c28f64d4692362ad6d7999d400d9e7b3ce62ceec2a004765f0e320461c6840f7832056188b53a8d813a597a911be083258ae74d7f'
6
+ metadata.gz: '08db577a6af107ee53a2a162f2d26099eaaea8c293adbf91ea284393e2abd3bc95891dc191b0f45378c5f354e63ee3ef313119e4d6f4ec4392fbcf429fa2ef5e'
7
+ data.tar.gz: 89e863ba93acf06bba0dcf8a493d9344e278b7b0f0986c38ccf106fa05a9ca13bf5220946052ac8a947bc9cdf610eb1737082ab8fedfd34c7e4252bce33bb19c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ ### 6.0.2 / 2022-10-26
4
+
5
+ Fix System test templates. (@bobmazanec)
6
+
7
+ ### 6.0.1 / 2020-01-14
8
+
9
+ Fix running parallel tests with relative paths
10
+
3
11
  ### 6.0.0 / 2019-08-16
4
12
 
5
13
  Supports Rails 6.0
data/README.md CHANGED
@@ -21,13 +21,19 @@ Create a new rails app:
21
21
 
22
22
  ### Choosing a version
23
23
 
24
- If you are running Rails 6.0 prerelease, set the gem using the github repo in the Gemfile:
24
+ If you are running Rails 6.x, specify a corresponding 6.x release in the Gemfile. For example, if you are using Rails 6.0 you will specify:
25
25
 
26
26
  ```ruby
27
- gem "minitest-rails", github: "blowmage/minitest-rails"
27
+ gem "minitest-rails", "~> 6.0.0"
28
28
  ```
29
29
 
30
- If you are running Rails 5.x, specify a 3.x release in the Gemfile:
30
+ If you are running Rails 5.x, specify a corresponding 5.x release in the Gemfile. For example, if you are using Rails 5.2 you will specify:
31
+
32
+ ```ruby
33
+ gem "minitest-rails", "~> 5.2.0"
34
+ ```
35
+
36
+ Or, if you prefer to run the previous release for Rails 5.x, specify a 3.x release in the Gemfile:
31
37
 
32
38
  ```ruby
33
39
  gem "minitest-rails", "~> 3.0"
@@ -1,7 +1,7 @@
1
1
  require "application_system_test_case"
2
2
 
3
- class <%= class_name.pluralize %>Test < ApplicationSystemTestCase
4
- # test "visiting the index" do
3
+ describe <%= class_name.pluralize %>, :system do
4
+ # it "visits the index" do
5
5
  # visit <%= plural_table_name %>_url
6
6
  #
7
7
  # assert_selector "h1", text: "<%= class_name %>"
@@ -1,7 +1,7 @@
1
1
  require "application_system_test_case"
2
2
 
3
3
  class <%= class_name.pluralize %>Test < ApplicationSystemTestCase
4
- # test "visiting the index" do
4
+ # def test_visiting_index
5
5
  # visit <%= plural_table_name %>_url
6
6
  #
7
7
  # assert_selector "h1", text: "<%= class_name %>"
@@ -30,7 +30,7 @@ module Kernel #:nodoc:
30
30
  cls_const = "Test__#{cls.name.to_s.split(/\W/).reject(&:empty?).join('_'.freeze)}"
31
31
  if block.source_location
32
32
  source_path, line_num = block.source_location
33
- source_path = Pathname.new(source_path).relative_path_from(Rails.root).to_s
33
+ source_path = Pathname.new(File.expand_path(source_path)).relative_path_from(Rails.root).to_s
34
34
  source_path = source_path.split(/\W/).reject(&:empty?).join("_".freeze)
35
35
  cls_const += "__#{source_path}__#{line_num}"
36
36
  end
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Rails
3
- VERSION = "6.0.0".freeze
3
+ VERSION = "6.0.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-16 00:00:00.000000000 Z
11
+ date: 2023-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -182,7 +182,7 @@ homepage: http://blowmage.com/minitest-rails
182
182
  licenses:
183
183
  - MIT
184
184
  metadata: {}
185
- post_install_message:
185
+ post_install_message:
186
186
  rdoc_options: []
187
187
  require_paths:
188
188
  - lib
@@ -197,8 +197,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  requirements: []
200
- rubygems_version: 3.0.3
201
- signing_key:
200
+ rubygems_version: 3.4.12
201
+ signing_key:
202
202
  specification_version: 4
203
203
  summary: Minitest integration for Rails
204
204
  test_files: []