jekyll_frontmatter_tests 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/lib/jekyll_frontmatter_tests.rb +5 -7
- 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: c4916b33ffb20666a1483d4204ac9a6412fca6c4
|
4
|
+
data.tar.gz: 3e2219857341480f9c4598d2824b8ffb46753ce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dbdef302966a5ff16eddb6923a108ab7c58fb148cdc39f21f63c10e8bfdd6894be9b3f4aa938e6143d16ee3f614c1630e1f04e9f0c843804726cae7afa38153
|
7
|
+
data.tar.gz: bd31493b0e15a0f2b6f77f77028bad0d409558c492ac0c82cd6341c78acca6a4ab52d6106244fe4a66871f3924f89b7053cef1f8e0d3cb40c52b099b8d918d1d
|
@@ -86,7 +86,7 @@ class FrontmatterTests < Jekyll::Command
|
|
86
86
|
# it.
|
87
87
|
def test_posts
|
88
88
|
puts 'testing posts'.green
|
89
|
-
yepnope = process(loadschema('_posts.yml'))
|
89
|
+
yepnope = Array.new.push process(loadschema('_posts.yml'))
|
90
90
|
puts 'Finished testing'.green
|
91
91
|
yepnope
|
92
92
|
end
|
@@ -137,17 +137,15 @@ class FrontmatterTests < Jekyll::Command
|
|
137
137
|
# The test runner pushes the result of each test into a `results` array and # exits `1` if any tests fail or `0` if all is well.
|
138
138
|
def test_frontmatter(args, options)
|
139
139
|
puts 'starting tests'
|
140
|
-
results = Array.new
|
141
140
|
if options['posts']
|
142
|
-
results
|
141
|
+
results = test_posts
|
143
142
|
elsif options['collections']
|
144
143
|
collections = options['collections'].split(',')
|
145
|
-
results
|
144
|
+
results = test_collections(collections)
|
146
145
|
else
|
147
|
-
results
|
146
|
+
results = test_everything
|
148
147
|
end
|
149
|
-
results.
|
150
|
-
if results.empty?
|
148
|
+
unless results.find_index{ |r| r == false }
|
151
149
|
puts 'Tests finished!'
|
152
150
|
exit 0
|
153
151
|
else
|