simplecov-single_file_reporter 0.0.1 → 0.0.2
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.
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "simplecov"
|
2
2
|
|
3
3
|
class SimpleCov::SingleFileReporter
|
4
|
-
VERSION = "0.0.
|
4
|
+
VERSION = "0.0.2"
|
5
5
|
|
6
6
|
ANSI_COLOR_CODE = {
|
7
7
|
:red => "\e[31m",
|
@@ -56,7 +56,7 @@ class SimpleCov::SingleFileReporter
|
|
56
56
|
sub(%r{_(test|spec)\.rb}, ".rb").
|
57
57
|
sub(%r{(^|/)test_([^/]+\.rb)}, "\\1\\2")
|
58
58
|
|
59
|
-
possibilities = ["app", "
|
59
|
+
possibilities = ["lib", "app", "app/models"].map { |f| "#{f}/#{file}" }
|
60
60
|
possibilities.detect { |f| File.exist?(f) }
|
61
61
|
end
|
62
62
|
|
@@ -90,6 +90,10 @@ describe SimpleCov::SingleFileReporter do
|
|
90
90
|
test_find "test/functional/xxx_controller_test.rb", "app/controllers/xxx_controller.rb"
|
91
91
|
end
|
92
92
|
|
93
|
+
it "finds test/unit/xxx in app/models" do
|
94
|
+
test_find "test/unit/xxx_test.rb", "app/models/xxx.rb"
|
95
|
+
end
|
96
|
+
|
93
97
|
it "finds test/unit/xxx as app/xxx" do
|
94
98
|
test_find "test/unit/xxx_test.rb", "app/xxx.rb"
|
95
99
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: simplecov-single_file_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Michael Grosser
|
@@ -68,7 +68,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
68
|
version: '0'
|
69
69
|
segments:
|
70
70
|
- 0
|
71
|
-
hash:
|
71
|
+
hash: 82262275293023457
|
72
72
|
none: false
|
73
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
segments:
|
79
79
|
- 0
|
80
|
-
hash:
|
80
|
+
hash: 82262275293023457
|
81
81
|
none: false
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|