shoulda_runner 0.2.2 → 0.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e7ecb2e4bf49a484c9cf9b8f7a50df3710ebd2d
4
- data.tar.gz: e03a306cea3bb6a867dd1b4c294bb414466e352a
3
+ metadata.gz: da986c2e456bb8a08c84c7a022a5484cc6fb1d72
4
+ data.tar.gz: 2c0f0648eaf3f4e75f1ce194fb549e889dfd0006
5
5
  SHA512:
6
- metadata.gz: 8df88b064f43b2af6dac7a552d63ac41e5a1d0628a9d8d6065f2a794ba0ec9e80346a1c03d228ecebc08237e330f629ac73a6b79cba62a3be6399998a8084993
7
- data.tar.gz: 3b4dd38f7b06c47920b55c349df4812c0ebfd8a194feac4bf6665908f2d5a8d5af956bdc5f5a115d5f8e1ee42b413f6a82fcfa8ca6daf0d5f8a9daf70c89ef89
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
- if node.children.empty?
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)
@@ -1,3 +1,3 @@
1
1
  module ShouldaRunner
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoulda_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giuseppe Modarelli