pad_gem 1.5.0 → 1.6.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
  SHA1:
3
- metadata.gz: 709398b33946d8d272690e7eb0c51ddbaf3c0d66
4
- data.tar.gz: e83c48f9fa1bfcc35c54d52e3cfbb5bf38198159
3
+ metadata.gz: c7f24a5114e2b8d3e9c0406c15f2686984c8a774
4
+ data.tar.gz: 9f1f4e2cfb55bd64eae0c17b8b42ecf4564ebabd
5
5
  SHA512:
6
- metadata.gz: f81c61f36f8af974aa0d34fc8b185e08a8d8898cccefb1d46ec1e31f90573df8683051ed73213143def6303b2d400fe4083b6d761bce843e98df3f6602d87fb4
7
- data.tar.gz: 4fb4cf3a6dfc0a31201acd30efb69cb7a7a04b82ddf027950a8446b64c6f315661076e51ff132d6f383749a38085db2774fabf4fedc011ebd75913a6ed05d7df
6
+ metadata.gz: db4b9ee6ea91ca300e08a759c2c679b59f3865550ca5cd92304787a1766f0885f5be1baf72778916646a0b994d3f45d91080742601281563245e097f71603758
7
+ data.tar.gz: 406c698c11ffb571e8d85592c18c9d2d9f2490d1ca0029bc99a19ef356614867f8ca49078a7f88c8083331db4030dfd803e536dc9eda5a4e3d1043fcbfe8d853
@@ -8,6 +8,11 @@ start_time = Time.now
8
8
  number_of_tests = 0
9
9
  errors_list = []
10
10
 
11
+ # CLI argument to select which test area to run.
12
+ # Example: ruby test_runner.rb user
13
+ area = ARGV[0]
14
+ test_files = area.nil? ? "*_test.rb" : "#{area}*"
15
+
11
16
  # Add preconditions to running tests just below this line.
12
17
  # For example, ENV['MY_APP'] = 'development'
13
18
 
@@ -15,7 +20,7 @@ puts
15
20
 
16
21
  PadUtils.puts_c "Running tests...", :blue
17
22
 
18
- Dir["units/*_test.rb"].each do |file|
23
+ Dir["units/#{test_files}"].each do |file|
19
24
  require_relative file
20
25
 
21
26
  class_name = PadUtils.filename_to_classname(file)
@@ -1,3 +1,3 @@
1
1
  module PadGem
2
- VERSION = "1.5.0"
2
+ VERSION = "1.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pad_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Schuele
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-28 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pad_utils