matest 1.7.3 → 1.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/matest/spec_tasks.rb +3 -3
- data/lib/matest/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4d44c52181370ea4fa1e4776fe65bec52237de3
|
4
|
+
data.tar.gz: cc0501daa514b3376bee52ca9d8b52f59c4bd7e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c40e2f69da5f5f35c1c4a513b2e9411275f1127a2c5413b40eaf2d2d5798f813789b15bf9c979bccd470a52a44221faee0a55fac2a182f1c2752fc5dc350de9
|
7
|
+
data.tar.gz: d3fa25d954b9d8bcb9edfc1c06c78bf78391b50a64868e1ddfc7742b4ee129e88ff952524142cef2347470c360eddda366e044dc7c6de6ab751194576f9e7cc9
|
data/lib/matest/spec_tasks.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
task :spec do
|
2
2
|
arg_files = (ENV["FILES"] && ENV["FILES"].split(/[\s,]+/)) || [ENV["SPEC"]]
|
3
|
-
if arg_files
|
3
|
+
if arg_files.any?
|
4
4
|
arg_files.map! { |file_name|
|
5
5
|
path = Pathname(file_name.to_s).expand_path
|
6
|
-
unless Pathname(file_name.to_s.split(":").first
|
6
|
+
unless Pathname(file_name.to_s.split(":").first).exist?
|
7
7
|
raise "Spec file not found: #{file_name.inspect}"
|
8
8
|
end
|
9
9
|
path.directory? ? path.to_s + "/**/*.rb" : path.to_s
|
@@ -14,5 +14,5 @@ task :spec do
|
|
14
14
|
files = arg_files || all_files
|
15
15
|
puts "\nRuning tests for: #{ files.join(" ") }\n\n"
|
16
16
|
|
17
|
-
system
|
17
|
+
system ["matest"].concat(files).join(" ")
|
18
18
|
end
|
data/lib/matest/version.rb
CHANGED