etest 0.6.1 → 0.6.2
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 +9 -2
- data/vex/gem.rb +0 -1
- metadata +4 -4
data/gem.yml
CHANGED
data/lib/module_ext.rb
CHANGED
@@ -12,9 +12,16 @@ end
|
|
12
12
|
class Module
|
13
13
|
#
|
14
14
|
# reloads the module, and runs the module's etests.
|
15
|
-
def etest
|
15
|
+
def etest(test = nil)
|
16
16
|
reload if respond_to?(:reload)
|
17
|
-
|
17
|
+
|
18
|
+
begin
|
19
|
+
old_argv = ARGV
|
20
|
+
ARGV = [ "-n", test.to_s ] if test # hack!
|
21
|
+
::Etest.run self.const_get("Etest")
|
22
|
+
ensure
|
23
|
+
ARGV = old_argv
|
24
|
+
end
|
18
25
|
end
|
19
26
|
|
20
27
|
#
|
data/vex/gem.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: etest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- pboy
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-11-
|
18
|
+
date: 2011-11-20 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: dlog
|