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.
@@ -1,7 +1,7 @@
1
1
  module Foodcritic
2
2
  module Rackspace
3
3
  module Rules
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
  end
6
6
  end
7
7
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foodcritic-rackspace-rules
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: