matest 1.3.1 → 1.3.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 +4 -4
- data/Rakefile +10 -0
- data/lib/matest/configure.rb +8 -4
- data/lib/matest/spec_printer.rb +1 -1
- data/lib/matest/version.rb +1 -1
- data/spec/matest_specs/aliases_spec.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: 161f528b33af0462a93a283e4fed0a333fd6f8cb
|
4
|
+
data.tar.gz: 2c5a1a2bf62de2b4f9d283733297c5d274a756d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9489765c88e786a6f2f71c4f2206c9ca15fe0de9c35cd5537d2534d028226bc96473c875355a87e440ef3773403a97341ebf76a6a9cdc1f2a80c906463676ae9
|
7
|
+
data.tar.gz: f6266bf6ff5a21948f18767ac03821ba6404549c870f6eef3f679dcbcaad22d3c8f34a17667d43209fa26ff47bc9ea76994b885b237afeb719e1f6bc97a9efd4
|
data/Rakefile
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
|
3
3
|
task default: :matest
|
4
|
+
|
5
|
+
task :spec do
|
6
|
+
arg_files = ENV["FILES"] && ENV["FILES"].split(/[\s,]+/)
|
7
|
+
all_files = Rake::FileList["./spec/matest_specs/**/*_spec.rb"]
|
8
|
+
files = arg_files || all_files
|
9
|
+
puts "\nRuning tests for: #{ files.join(" ") }\n\n"
|
10
|
+
|
11
|
+
system *["./bin/matest"].concat(files)
|
12
|
+
end
|
13
|
+
|
4
14
|
task :matest do
|
5
15
|
arg_files = ENV["FILES"] && ENV["FILES"].split(/[\s,]+/)
|
6
16
|
all_files = Rake::FileList["./spec/matest_specs/**/*_spec.rb"]
|
data/lib/matest/configure.rb
CHANGED
@@ -7,12 +7,16 @@ module Matest
|
|
7
7
|
module Configure
|
8
8
|
module_function
|
9
9
|
|
10
|
-
def
|
11
|
-
@
|
10
|
+
def color?
|
11
|
+
@color ||= false
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
15
|
-
@
|
14
|
+
def color=(color)
|
15
|
+
@color = color
|
16
|
+
end
|
17
|
+
|
18
|
+
def use_color
|
19
|
+
@color = true
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
data/lib/matest/spec_printer.rb
CHANGED
data/lib/matest/version.rb
CHANGED