testdependencies 0.3.0 → 0.4.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/VERSION +1 -1
- data/lib/adapters/plain.rb +2 -2
- data/testdependencies.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/adapters/plain.rb
CHANGED
@@ -7,8 +7,8 @@ ActiveSupport::TestCase.module_eval do
|
|
7
7
|
dep = decl.values.first
|
8
8
|
dep = "test_#{dep.gsub(/\s+/,'_')}".to_sym if String === dep
|
9
9
|
raise "Dependency undefined: #{dep}" unless respond_to?(dep)
|
10
|
-
result = send(dep) rescue
|
11
|
-
instance_exec(*result, &block)
|
10
|
+
result = send(dep) rescue :__failure_in_dep
|
11
|
+
instance_exec(*result, &block) unless result == :__failure_in_dep
|
12
12
|
end
|
13
13
|
else
|
14
14
|
old_test decl, &block
|
data/testdependencies.gemspec
CHANGED