test_parser 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,15 @@
1
1
  module TestParser
2
2
  class TestInformation < Struct.new(:type, :identification, :file, :extras)
3
+
3
4
  def snippet
4
5
  source_code = SourceCode.for(file)
5
- case test.type
6
+ case type
6
7
  when :rspec2
7
8
  source_code.extract_code_from_line(extras[:line_number])
8
9
  when :minitest
9
10
  source_code.extract_method(extras[:method_name])
10
11
  end
11
12
  end
13
+
12
14
  end
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module TestParser
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: test_parser
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Juan Manuel Barreneche