micro_test 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/mt +7 -5
  2. data/lib/micro_test/version.rb +1 -1
  3. metadata +2 -2
data/bin/mt CHANGED
@@ -130,11 +130,13 @@ 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
- stack.shift while !(stack[0] =~ /pry-nav/)
134
- count = 0
135
- stack.each do |line|
136
- break if line =~ /test_wrapper/
137
- count += 1
133
+ if stack[0] =~ /pry-nav|pry-debugger/
134
+ stack.shift while !(stack[0] =~ /pry-nav|pry-debugger/)
135
+ count = 0
136
+ stack.each do |line|
137
+ break if line =~ /test_wrapper/
138
+ count += 1
139
+ end
138
140
  end
139
141
  _pry_.run_command "up #{count}"
140
142
  end
@@ -1,3 +1,3 @@
1
1
  module MicroTest
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micro_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.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: 2013-01-06 00:00:00.000000000 Z
12
+ date: 2013-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: os