micro_test 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/mt +7 -8
- data/lib/micro_test/version.rb +1 -1
- metadata +1 -1
data/bin/mt
CHANGED
@@ -130,15 +130,14 @@ if options[:pry]
|
|
130
130
|
_pry_.commands.create_command "line", "View the assert line that failed." do
|
131
131
|
def process
|
132
132
|
stack = caller.dup
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
133
|
+
unwanted_stack = stack.select do |line|
|
134
|
+
line =~ /pry-nav|pry-debugger/
|
135
|
+
end
|
136
|
+
if unwanted_stack.empty?
|
137
|
+
_pry_.run_command "up"
|
138
|
+
else
|
139
|
+
_pry_.run_command "up #{unwanted_stack.size + 1}"
|
140
140
|
end
|
141
|
-
_pry_.run_command "up #{count}"
|
142
141
|
end
|
143
142
|
end
|
144
143
|
|
data/lib/micro_test/version.rb
CHANGED