shoulda_runner 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shoulda_runner/parser.rb +2 -1
- data/lib/shoulda_runner/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da986c2e456bb8a08c84c7a022a5484cc6fb1d72
|
4
|
+
data.tar.gz: 2c0f0648eaf3f4e75f1ce194fb549e889dfd0006
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb5f9b5b451877a4f0dae091ff1263c62b25abcd0a56fc1c5b2d3a87a414a0396f3c3c293e5c635ce9b90853475f1216d031b938d8d8635344c1b57c47a6a78
|
7
|
+
data.tar.gz: cfe45b55a3d4b95f554fc7545a348d4327327a34309d34c53b2e062f3b435841ffd2a32367e1a2154dbb5b0629b04beff3cd47c23f9ec6c463f9ace6cb5cd981
|
@@ -17,7 +17,8 @@ module ShouldaRunner
|
|
17
17
|
hash = {}
|
18
18
|
@asts.each do |ast|
|
19
19
|
ast.each do |node|
|
20
|
-
|
20
|
+
# TODO: Improve this to make sure we are only considering test ASTs
|
21
|
+
if node.children.empty? && !node.content.nil? && node.content[:line_range]
|
21
22
|
from = node.content[:line_range][:from]
|
22
23
|
to = node.content[:line_range][:to]
|
23
24
|
test_name = build_test_name(node)
|