target_practice 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,6 @@
|
|
1
1
|
class TargetPracticeTestCase < MiniTest::Unit::TestCase
|
2
|
+
@@meta_assertions = {}
|
3
|
+
|
2
4
|
def setup
|
3
5
|
assert @@files, "File data was not set!"
|
4
6
|
end
|
@@ -34,10 +36,10 @@ class TargetPracticeTestCase < MiniTest::Unit::TestCase
|
|
34
36
|
end
|
35
37
|
|
36
38
|
def is_meta_command?(v)
|
37
|
-
|
39
|
+
@@meta_assertions.keys.include? v
|
38
40
|
end
|
39
41
|
|
40
|
-
def
|
41
|
-
[]
|
42
|
+
def perform_meta_assertion(obj, command, v)
|
43
|
+
@@meta_assertions[command].call(self, obj, v) if @@meta_assertions[command]
|
42
44
|
end
|
43
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: target_practice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A Ruby library for running TargetPractice (.tp) test suites.
|
15
15
|
email: kelly@layervault.com
|