cwninja-drunit 0.3 → 0.3.1
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/Rakefile +1 -1
- data/lib/drunit.rb +6 -3
- metadata +1 -1
data/Rakefile
CHANGED
@@ -17,7 +17,7 @@ end
|
|
17
17
|
|
18
18
|
spec = Gem::Specification.new do |s|
|
19
19
|
s.name = %q{drunit}
|
20
|
-
s.version = "0.3"
|
20
|
+
s.version = "0.3.1"
|
21
21
|
s.summary = %q{A library for running tests across multiple applications from a single test case.}
|
22
22
|
s.description = %q{A library for running tests across multiple applications from a single test case.}
|
23
23
|
|
data/lib/drunit.rb
CHANGED
@@ -21,9 +21,12 @@ module Drunit
|
|
21
21
|
|
22
22
|
private
|
23
23
|
def rewrite_backtrace(e, method_name, app_name)
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
backtrace = e.backtrace
|
25
|
+
if first_remote_line = backtrace.grep(Regexp.new(method_name)).first
|
26
|
+
index = backtrace.index(first_remote_line)
|
27
|
+
backtrace = backtrace[0..index] + ["in drunit_remote(#{app_name})"] + caller(1)
|
28
|
+
backtrace.map!{|line| line.gsub(/\(druby:\/\/[^\)]+\) /, "")}
|
29
|
+
raise e, e.message, backtrace
|
27
30
|
end
|
28
31
|
end
|
29
32
|
|