etest 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/gem.yml +1 -1
- data/lib/module_ext.rb +4 -3
- metadata +3 -3
data/gem.yml
CHANGED
data/lib/module_ext.rb
CHANGED
@@ -16,11 +16,12 @@ class Module
|
|
16
16
|
reload if respond_to?(:reload)
|
17
17
|
|
18
18
|
begin
|
19
|
-
old_argv = ARGV
|
20
|
-
|
19
|
+
old_argv = Object.const_get "ARGV"
|
20
|
+
|
21
|
+
Object.const_set "ARGV", [ "-n", test.to_s ] if test # hack!
|
21
22
|
::Etest.run self.const_get("Etest")
|
22
23
|
ensure
|
23
|
-
ARGV
|
24
|
+
Object.const_set "ARGV", old_argv
|
24
25
|
end
|
25
26
|
end
|
26
27
|
|
metadata
CHANGED