packs-rails-minitest 0.1.3 → 0.2.0

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: 0af4760c8ebd6d083516a7f4be43c417f00e37e1eb7a764c01eec643e045883d
4
- data.tar.gz: 9cb08376463bd7fe2a7756df2c693f1ddf94b9e972a429ec5c527e091b0cfb9a
3
+ metadata.gz: b482fa5526ffe367681b9c79674675146ee9dd38152991de6e82d617478284ea
4
+ data.tar.gz: c3d92cbc0000adf2db4ceff66209fbbba1b376cc068aad178f77a463deda81b9
5
5
  SHA512:
6
- metadata.gz: 6988173415813cef847aa6b632f12f748bc91d7a0fdda83a02e9dcf92ea867294dd2621fccfd144140982b86c60caed3ef7eda6fcb3becbcd588b1a2092d8ba7
7
- data.tar.gz: 92f984cf364fd9a33e21021d5028cff4108d585550f96d3b0f873eacef7c91a70f8ed69cd99229c8165b7730114ac658cc57e0dbb1b879c8a24a5ed7de80faed
6
+ metadata.gz: 32d6b4779b46960e86cf257cadae8408b63c83d4a9c0b4dd072fc0a9b034e04ffa65876fc989c563a6e817d64627d419a305cc56546fe461392ba5935de9e324
7
+ data.tar.gz: cfa119c32eb4a04efaaec31869544c4fb25a7e8495651ba36c658612d9870f395f7acce32291fb1f8337b37a6288c34ca0b3ea9a087849dddc44463e6a17a92a
@@ -1,7 +1,7 @@
1
1
  module Packs
2
2
  module Rails
3
3
  module Minitest
4
- VERSION = "0.1.3"
4
+ VERSION = "0.2.0"
5
5
  end
6
6
  end
7
7
  end
@@ -1,4 +1,7 @@
1
- run_tests = ->(*args) { system("rails", "test", *args) || exit($?.exitstatus) }
1
+ run_tests = ->(*args) do
2
+ opts = ENV.key?("TESTOPTS") ? ENV["TESTOPTS"].shellsplit : []
3
+ system("rails", "test", *args, *opts) || exit($?.exitstatus)
4
+ end
2
5
 
3
6
  namespace :packs do
4
7
 
@@ -27,7 +30,7 @@ namespace :packs do
27
30
  end
28
31
 
29
32
  namespace pack.name do
30
- multitask :prepare
33
+ multitask prepare: pack.raw_hash["dependencies"]&.map { |dep| "#{dep}:prepare" }
31
34
 
32
35
  task(all: :prepare) { run_tests.call(pack.relative_path.join("test/**/*_test.rb").to_s) }
33
36
  task(system: :prepare) { run_tests.call(pack.relative_path.join("test/system/**/*_test.rb").to_s) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packs-rails-minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Graham Rogers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-15 00:00:00.000000000 Z
11
+ date: 2023-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: packs