coverfield 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/coverfield/source_file.rb +1 -1
- data/lib/coverfield/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: c9769d1a0bdcb6d2f686f03b0fe60207779fc2e3
|
4
|
+
data.tar.gz: 41b064b0ea8701426554cd0326228cc4f8a9edc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e27ac0765a91a7c474a1022107d951bc6f7362423fb9d80ab460ae78e6d6503ba249ec09f3309620a7f3b1b6d6d56f497004110b3624967efce9582885e7234
|
7
|
+
data.tar.gz: 0c09947fd5dfe20d34bcba1b9ee09500a58153c4ae1e43e6fe1cbda8ae99f14b3231cbaa48bb16f651c894d217aedc476bda6e593b4382f43ac2e172462f4efb
|
data/README.md
CHANGED
@@ -65,13 +65,13 @@ Coverfield requires you to have a specific architecture of your RSpec Suite.
|
|
65
65
|
1. All specs are located in `spec/`.
|
66
66
|
2. Within `spec` all specs are placed in the same path as the file which is
|
67
67
|
tested by the spec. For example the spec for the file
|
68
|
-
`/lib/some/
|
69
|
-
`/spec/lib/some/
|
68
|
+
`/lib/some/nice_class.rb` have to be placed in
|
69
|
+
`/spec/lib/some/nice_class_spec.rb`. And the spec for the file
|
70
70
|
`/app/models/post.rb` goes to `/spec/models/post.rb`
|
71
71
|
[Why?](http://stackoverflow.com/questions/14180003/rspec-naming-conventions-for-files-and-directory-structure)
|
72
|
-
3. The first
|
73
|
-
`describe Some::
|
74
|
-
the class `Some::
|
72
|
+
3. The first `describe` call have to be built like that:
|
73
|
+
`describe Some::NiceClass do` assuming, that `/lib/some/nice_code.rb` defines
|
74
|
+
the class `Some::NiceClass`.
|
75
75
|
[Why?](http://rspec.info/documentation/3.4/rspec-core/#Basic_Structure)
|
76
76
|
4. All inner `describe` calls for the methods have to be built like that:
|
77
77
|
`describe '#method_name' do`. The `#` is optional and may also be a `.`.
|
@@ -33,7 +33,7 @@ class Coverfield::SourceFile
|
|
33
33
|
@coverage += 1
|
34
34
|
else
|
35
35
|
method_name = "#{cls.name}.#{method_name}".red
|
36
|
-
@hints << "Missing test
|
36
|
+
@hints << "Missing test for #{method_name} in #{test_file.relative_file_name.yellow}"
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
data/lib/coverfield/version.rb
CHANGED