rspec-doc 0.1.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rspecdoc +0 -1
- data/lib/rspec-doc/active_record.rb +1 -1
- data/lib/rspec-doc/model_builder.rb +2 -0
- 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: fd3a4017b64161d70f182cc8d55a21203b061079
|
4
|
+
data.tar.gz: d55728cca55c33e883117fbd3af42d8b685d59cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa35fa41f3a2ecdb680df6e33aed585d9d03bf14430df780e4b51a1044b24d9746d557f4711db3603905a7fdf56419d81430d66ba8f9c561b37a585847b1e83b
|
7
|
+
data.tar.gz: 0d41ffd4bcc4527b56b3f9fcf2e95b6b02bd3c3a003d31227e7da1fd89916bcc2ec3d26d9ad8c8c5e269029ae48ae890bed9ceb2348934f50ceed3211bef4370
|
data/bin/rspecdoc
CHANGED
@@ -52,7 +52,7 @@ private
|
|
52
52
|
# select the target obj item
|
53
53
|
expectation_source.gsub!(model, 'model')
|
54
54
|
expectation_source.gsub!('be_', 'be ')
|
55
|
-
|
55
|
+
expectation_source.lines do |line|
|
56
56
|
key, matcher, value = nil
|
57
57
|
/expect\(model\.(?<key>.*)\)\.(?<is>to|not_to)[\s+\(](?<matcher>.*)[\s+\(](?<value>.*)[\,\)\s+\n]/ =~ "#{line.strip}\n"
|
58
58
|
next unless key && is && matcher && value
|