foodcritic-rackspace-rules 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -142,3 +142,21 @@ rule 'RACK005', "Cookbook metadata must have#{req_fields.string}" do
|
|
142
142
|
end
|
143
143
|
end # cookbook
|
144
144
|
end # rule
|
145
|
+
|
146
|
+
rule 'RACK006', 'Cookbook chefspec and rspec tests should be in ./test/unit/spec, not ./spec' do
|
147
|
+
tags %w(style rackspace)
|
148
|
+
|
149
|
+
default_suite_found = false
|
150
|
+
|
151
|
+
cookbook do |path|
|
152
|
+
next unless File.exist?("#{path}/spec")
|
153
|
+
matches = []
|
154
|
+
matches << {
|
155
|
+
:filename => false,
|
156
|
+
:matched => 'should not be here',
|
157
|
+
:line => 0,
|
158
|
+
:column => 0
|
159
|
+
}
|
160
|
+
matches
|
161
|
+
end # cookbook
|
162
|
+
end # rule
|