exceptional_synchrony 1.0.1 → 1.3.0

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.
data/Thorfile DELETED
@@ -1,42 +0,0 @@
1
- require 'thor'
2
-
3
- $LOAD_PATH.unshift('lib')
4
-
5
- class Dev < Thor
6
- package_name 'dev'
7
-
8
- desc 'test' , 'Run the entire test suite or a single file.'
9
- method_options :file => :string, :n => :string
10
- def test
11
-
12
- ENV['RACK_ENV'] = 'test'
13
-
14
- require 'bundler'
15
- Bundler.setup(:default, :development)
16
-
17
- require './test/test_helper.rb'
18
-
19
- # Minitest is very bad and piggy backs on the Global arguments just like everyone else.
20
- # Let's stop it from trying to parse Thor's arguments.
21
- clear_args
22
-
23
- add_args('-n', options[:n]) if options[:n]
24
-
25
- # If we have a single file run it, otherwise run them all.
26
- if single_file = options[:file]
27
- require single_file
28
- else
29
- Dir.glob('./test/**/*_test.rb') { |f| require f }
30
- end
31
- end
32
-
33
- private
34
- def clear_args
35
- ARGV.shift(ARGV.length)
36
- end
37
-
38
- def add_args(*args)
39
- args.each { |arg| ARGV << arg }
40
- end
41
- end
42
-