rake 0.4.13 → 0.4.14
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/CHANGES +5 -0
- data/lib/rake.rb +1 -1
- data/lib/rake/testtask.rb +2 -8
- metadata +2 -2
data/CHANGES
CHANGED
data/lib/rake.rb
CHANGED
data/lib/rake/testtask.rb
CHANGED
|
@@ -36,8 +36,6 @@ module Rake
|
|
|
36
36
|
#
|
|
37
37
|
class TestTask < TaskLib
|
|
38
38
|
|
|
39
|
-
SEP = ''
|
|
40
|
-
|
|
41
39
|
# Name of test task. (default is :test)
|
|
42
40
|
attr_accessor :name
|
|
43
41
|
|
|
@@ -80,19 +78,15 @@ module Rake
|
|
|
80
78
|
desc "Run tests" + (@name==:test ? "" : " for #{@name}")
|
|
81
79
|
task @name do
|
|
82
80
|
RakeFileUtils.verbose(@verbose) do
|
|
83
|
-
ruby %{-I#{lib_path} -
|
|
81
|
+
ruby %{-I#{lib_path} -S testrb #{file_list.join(' ')} #{option_list}}
|
|
84
82
|
end
|
|
85
83
|
end
|
|
86
84
|
self
|
|
87
85
|
end
|
|
88
86
|
|
|
89
|
-
def required_files # :nodoc:
|
|
90
|
-
file_list.gsub(/^(.*)\.rb$/, ' -r\1').join(" #{SEP}")
|
|
91
|
-
end
|
|
92
|
-
|
|
93
87
|
def option_list # :nodoc:
|
|
94
88
|
if get_options
|
|
95
|
-
testoptions = "
|
|
89
|
+
testoptions = " -- #{get_options}"
|
|
96
90
|
else
|
|
97
91
|
testoptions = ''
|
|
98
92
|
end
|