foodcritic 11.1.0 → 11.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -1
  3. data/README.md +18 -0
  4. data/chef_dsl_metadata/{chef_12.8.1.json → chef_13.1.31.json} +4377 -1784
  5. data/features/009_check_for_unrecognised_resource_attributes.feature +0 -9
  6. data/features/038_check_for_invalid_action.feature +0 -9
  7. data/features/step_definitions/cookbook_steps.rb +6 -124
  8. data/lib/foodcritic/command_line.rb +1 -1
  9. data/lib/foodcritic/linter.rb +1 -1
  10. data/lib/foodcritic/rules/fc091.rb +10 -0
  11. data/lib/foodcritic/rules/fc092.rb +10 -0
  12. data/lib/foodcritic/version.rb +1 -1
  13. data/spec/functional/fc008_spec.rb +6 -6
  14. data/spec/functional/fc009_spec.rb +27 -0
  15. data/spec/functional/fc010_spec.rb +32 -0
  16. data/spec/functional/fc011_spec.rb +3 -3
  17. data/spec/functional/fc012_spec.rb +3 -3
  18. data/spec/functional/fc013_spec.rb +4 -4
  19. data/spec/functional/fc015_spec.rb +19 -0
  20. data/spec/functional/fc016_spec.rb +5 -5
  21. data/spec/functional/fc028_spec.rb +18 -18
  22. data/spec/functional/fc029_spec.rb +6 -6
  23. data/spec/functional/fc031_spec.rb +2 -2
  24. data/spec/functional/fc038_spec.rb +23 -0
  25. data/spec/functional/fc042_spec.rb +2 -2
  26. data/spec/functional/fc043_spec.rb +28 -0
  27. data/spec/functional/fc045_spec.rb +3 -3
  28. data/spec/functional/fc052_spec.rb +2 -2
  29. data/spec/functional/fc053_spec.rb +2 -2
  30. data/spec/functional/fc055_spec.rb +3 -3
  31. data/spec/functional/fc056_spec.rb +3 -3
  32. data/spec/functional/fc057_spec.rb +62 -0
  33. data/spec/functional/fc058_spec.rb +102 -0
  34. data/spec/functional/fc059_spec.rb +27 -0
  35. data/spec/functional/fc060_spec.rb +45 -0
  36. data/spec/functional/fc061_spec.rb +9 -9
  37. data/spec/functional/fc062_spec.rb +2 -2
  38. data/spec/functional/fc063_spec.rb +3 -3
  39. data/spec/functional/fc064_spec.rb +2 -2
  40. data/spec/functional/fc065_spec.rb +2 -2
  41. data/spec/functional/fc066_spec.rb +6 -6
  42. data/spec/functional/fc067_spec.rb +2 -2
  43. data/spec/functional/fc068_spec.rb +2 -2
  44. data/spec/functional/fc069_spec.rb +5 -5
  45. data/spec/functional/fc070_spec.rb +9 -9
  46. data/spec/functional/fc071_spec.rb +6 -6
  47. data/spec/functional/fc072_spec.rb +2 -2
  48. data/spec/functional/fc073_spec.rb +9 -9
  49. data/spec/functional/fc074_spec.rb +3 -3
  50. data/spec/functional/fc075_spec.rb +5 -5
  51. data/spec/functional/fc091_spec.rb +38 -0
  52. data/spec/functional/fc092_spec.rb +31 -0
  53. data/spec/regression/expected/aix.txt +1 -0
  54. data/spec/regression/expected/build-essential.txt +1 -0
  55. data/spec/regression/expected/drbd.txt +1 -0
  56. data/spec/regression/expected/perl.txt +1 -0
  57. data/spec/regression/expected/sudo.txt +1 -0
  58. data/spec/regression/expected/users.txt +1 -0
  59. data/spec/spec_helper.rb +8 -0
  60. data/spec/unit/linter_spec.rb +1 -1
  61. metadata +18 -14
  62. data/chef_dsl_metadata/chef_12.6.0.json +0 -15760
  63. data/chef_dsl_metadata/chef_12.7.2.json +0 -16673
  64. data/features/010_check_search_syntax.feature +0 -20
  65. data/features/015_check_for_definitions.feature +0 -20
  66. data/features/043_check_for_old_notification_style.feature +0 -28
  67. data/features/057_check_for_library_provider_without_use_inline_resources.feature +0 -20
  68. data/features/058_check_for_library_provider_bad_action_methods.feature +0 -25
  69. data/features/059_check_for_lwrp_provider_without_use_inline_resources.feature +0 -15
  70. data/features/060_check_for_lwrp_provider_bad_action_methods.feature +0 -25
@@ -0,0 +1,27 @@
1
+ require "spec_helper"
2
+
3
+ describe "FC059" do
4
+ context "with a cookbook with LWRP not using use_inline_resources" do
5
+ provider_file <<-EOF
6
+ action :create do
7
+ template "/etc/something.conf" do
8
+ notifies :restart, "service[something]"
9
+ end
10
+ end
11
+ EOF
12
+ it { is_expected.to violate_rule }
13
+ end
14
+
15
+ context "with a cookbook with LWRP using use_inline_resources" do
16
+ provider_file <<-EOF
17
+ use_inline_resources
18
+
19
+ action :create do
20
+ template "/etc/something.conf" do
21
+ notifies :restart, "service[something]"
22
+ end
23
+ end
24
+ EOF
25
+ it { is_expected.not_to violate_rule }
26
+ end
27
+ end
@@ -0,0 +1,45 @@
1
+ require "spec_helper"
2
+
3
+ describe "FC060" do
4
+ context "with a cookbook with LWRP with use_inline_resources and with bad action_create" do
5
+ provider_file <<-EOF
6
+ use_inline_resources
7
+
8
+ def action_create
9
+ cookbook_file "/etc/something.conf"
10
+ end
11
+ EOF
12
+ it { is_expected.to violate_rule }
13
+ end
14
+
15
+ context "with a cookbook with LWRP without use_inline_resources and with bad action_create" do
16
+ provider_file <<-EOF
17
+ def action_create
18
+ cookbook_file "/etc/something.conf"
19
+ end
20
+ EOF
21
+ it { is_expected.not_to violate_rule }
22
+ end
23
+
24
+ context "with a cookbook with LWRP without use_inline_resources" do
25
+ provider_file <<-EOF
26
+ action :create do
27
+ cookbook_file "/etc/something.conf"
28
+ end
29
+ EOF
30
+ it { is_expected.not_to violate_rule }
31
+ end
32
+
33
+ context "with a cookbook with LWRP using use_inline_resources" do
34
+ provider_file <<-EOF
35
+ use_inline_resources
36
+
37
+ action :create do
38
+ template "/etc/something.conf" do
39
+ notifies :restart, "service[something]"
40
+ end
41
+ end
42
+ EOF
43
+ it { is_expected.not_to violate_rule }
44
+ end
45
+ end
@@ -3,46 +3,46 @@ require "spec_helper"
3
3
  describe "FC061" do
4
4
  context "with a cookbook with metadata that includes the version keyword and a valid version string" do
5
5
  metadata_file("version '1.2.3'")
6
- it { is_expected.not_to violate_rule("FC061") }
6
+ it { is_expected.not_to violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with metadata that includes the version keyword and a valid version string with double quotes" do
10
10
  metadata_file('version "1.2.3"')
11
- it { is_expected.not_to violate_rule("FC061") }
11
+ it { is_expected.not_to violate_rule }
12
12
  end
13
13
 
14
14
  context "with a cookbook with metadata that includes the version keyword and a valid x.y version string" do
15
15
  metadata_file("version '1.2'")
16
- it { is_expected.not_to violate_rule("FC061") }
16
+ it { is_expected.not_to violate_rule }
17
17
  end
18
18
 
19
19
  context "with a cookbook with metadata that does not include a version keyword" do
20
20
  metadata_file("name 'something'")
21
- it { is_expected.not_to violate_rule("FC061") }
21
+ it { is_expected.not_to violate_rule }
22
22
  end
23
23
 
24
24
  context "with a cookbook with metadata that includes the version keyword and an invalid version string" do
25
25
  metadata_file("version 'one'")
26
- it { is_expected.to violate_rule("FC061") }
26
+ it { is_expected.to violate_rule }
27
27
  end
28
28
 
29
29
  context "with a cookbook metadata that includes the version keyword and an invalid single digit version string" do
30
30
  metadata_file("version '1'")
31
- it { is_expected.to violate_rule("FC061") }
31
+ it { is_expected.to violate_rule }
32
32
  end
33
33
 
34
34
  context "with a cookbook metadata that includes the version keyword and an invalid four digit version string" do
35
35
  metadata_file("version '1.2.3.4'")
36
- it { is_expected.to violate_rule("FC061") }
36
+ it { is_expected.to violate_rule }
37
37
  end
38
38
 
39
39
  context "with a cookbook metadata that includes the version keyword that uses string interpolation" do
40
40
  metadata_file('patch = 3\nversion "1.2.#{patch}"')
41
- it { is_expected.not_to violate_rule("FC061") }
41
+ it { is_expected.not_to violate_rule }
42
42
  end
43
43
 
44
44
  context "with a cookbook metadata that includes the version keyword that is not a string literal" do
45
45
  metadata_file('v = "1.2.3"\nversion v')
46
- it { is_expected.not_to violate_rule("FC061") }
46
+ it { is_expected.not_to violate_rule }
47
47
  end
48
48
  end
@@ -3,11 +3,11 @@ require "spec_helper"
3
3
  describe "FC062" do
4
4
  context "with a cookbook with metadata that includes the version keyword and a valid version string" do
5
5
  metadata_file("version '1.2.3'")
6
- it { is_expected.not_to violate_rule("FC062") }
6
+ it { is_expected.not_to violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with metadata that does not include a version keyword" do
10
10
  metadata_file
11
- it { is_expected.to violate_rule("FC062") }
11
+ it { is_expected.to violate_rule }
12
12
  end
13
13
  end
@@ -3,16 +3,16 @@ require "spec_helper"
3
3
  describe "FC063" do
4
4
  context "with a cookbook with a metadata file that depends on itself" do
5
5
  metadata_file "name 'something'\ndepends 'something'"
6
- it { is_expected.to violate_rule("FC063") }
6
+ it { is_expected.to violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with a metadata file that depends on a cookbook, but not itself" do
10
10
  metadata_file "name 'something'\ndepends 'another_thing'"
11
- it { is_expected.to_not violate_rule("FC063") }
11
+ it { is_expected.to_not violate_rule }
12
12
  end
13
13
 
14
14
  context "with a cookbook with a metadata file that doesn't depend on any cookbooks" do
15
15
  metadata_file "name 'something'"
16
- it { is_expected.to_not violate_rule("FC063") }
16
+ it { is_expected.to_not violate_rule }
17
17
  end
18
18
  end
@@ -3,11 +3,11 @@ require "spec_helper"
3
3
  describe "FC064" do
4
4
  context "with a cookbook with a metadata file that does not specify issues_url" do
5
5
  metadata_file
6
- it { is_expected.to violate_rule("FC064") }
6
+ it { is_expected.to violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with a metadata file that specifies a issues_url" do
10
10
  metadata_file "issues_url 'http://wwww.something.com/'"
11
- it { is_expected.to_not violate_rule("FC064") }
11
+ it { is_expected.to_not violate_rule }
12
12
  end
13
13
  end
@@ -3,11 +3,11 @@ require "spec_helper"
3
3
  describe "FC065" do
4
4
  context "with a cookbook with a metadata file that does not specify source_url" do
5
5
  metadata_file
6
- it { is_expected.to violate_rule("FC065") }
6
+ it { is_expected.to violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with a metadata file that specifies a source_url" do
10
10
  metadata_file "source_url 'http://wwww.something.com/'"
11
- it { is_expected.to_not violate_rule("FC065") }
11
+ it { is_expected.to_not violate_rule }
12
12
  end
13
13
  end
@@ -3,31 +3,31 @@ require "spec_helper"
3
3
  describe "FC066" do
4
4
  context "with a cookbook with a metadata file that does not specify chef_version" do
5
5
  metadata_file "name 'my_cookbook'"
6
- it { is_expected.to violate_rule("FC066") }
6
+ it { is_expected.to violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with a metadata file that specifies a chef_version" do
10
10
  metadata_file "chef_version '>= 12.1'"
11
- it { is_expected.to_not violate_rule("FC066") }
11
+ it { is_expected.to_not violate_rule }
12
12
  end
13
13
 
14
14
  context "with a cookbook with a metadata file that specifies a chef_version with a guard" do
15
15
  metadata_file "chef_version '>= 12.1' if defined?(chef_version)"
16
- it { is_expected.to_not violate_rule("FC066") }
16
+ it { is_expected.to_not violate_rule }
17
17
  end
18
18
 
19
19
  context "with a cookbook with a metadata file that specifies a chef_version with parens" do
20
20
  metadata_file "chef_version('>= 12.1')"
21
- it { is_expected.to_not violate_rule("FC066") }
21
+ it { is_expected.to_not violate_rule }
22
22
  end
23
23
 
24
24
  context "with a cookbook with a metadata file that specifies a chef_version with multiple arguments" do
25
25
  metadata_file "chef_version '>= 12.1', '< 14'"
26
- it { is_expected.to_not violate_rule("FC066") }
26
+ it { is_expected.to_not violate_rule }
27
27
  end
28
28
 
29
29
  context "with a cookbook with a metadata file that specifies a chef_version with a splat" do
30
30
  metadata_file "chef_version(*['>= 12.1', '< 14'])"
31
- it { is_expected.to_not violate_rule("FC066") }
31
+ it { is_expected.to_not violate_rule }
32
32
  end
33
33
  end
@@ -3,11 +3,11 @@ require "spec_helper"
3
3
  describe "FC067" do
4
4
  context "with a cookbook with a metadata file that does not specify supports" do
5
5
  metadata_file "name 'my_cookbook'"
6
- it { is_expected.to violate_rule("FC067") }
6
+ it { is_expected.to violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with a metadata file that specifies a supported platform (anything)" do
10
10
  metadata_file "supports 'some_os'"
11
- it { is_expected.to_not violate_rule("FC067") }
11
+ it { is_expected.to_not violate_rule }
12
12
  end
13
13
  end
@@ -3,11 +3,11 @@ require "spec_helper"
3
3
  describe "FC068" do
4
4
  context "with a cookbook with a metadata file that does not specify the license" do
5
5
  metadata_file "name 'my_cookbook'"
6
- it { is_expected.to violate_rule("FC068") }
6
+ it { is_expected.to violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with a metadata file that specifies a license (anything)" do
10
10
  metadata_file "license 'My Super Cool License'"
11
- it { is_expected.to_not violate_rule("FC068") }
11
+ it { is_expected.to_not violate_rule }
12
12
  end
13
13
  end
@@ -3,27 +3,27 @@ require "spec_helper"
3
3
  describe "FC069" do
4
4
  context "with a cookbook with a metadata file that specifies a license generated by knife cookbook create" do
5
5
  metadata_file "license 'Apache 2.0'"
6
- it { is_expected.to violate_rule("FC069") }
6
+ it { is_expected.to violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with a metadata file that specifies a license generated by chef generate cookbook" do
10
10
  metadata_file "license 'apache_2'"
11
- it { is_expected.to violate_rule("FC069") }
11
+ it { is_expected.to violate_rule }
12
12
  end
13
13
 
14
14
  context "with a cookbook with a metadata file that specifies a valid SPDX license" do
15
15
  metadata_file "license 'Apache-2.0'"
16
- it { is_expected.to_not violate_rule("FC069") }
16
+ it { is_expected.to_not violate_rule }
17
17
  end
18
18
 
19
19
  context "with a cookbook with a metadata file that specifies ChefDK's non-SPDX all rights reserved string" do
20
20
  metadata_file "license 'All Rights Reserved'"
21
- it { is_expected.to_not violate_rule("FC069") }
21
+ it { is_expected.to_not violate_rule }
22
22
  end
23
23
 
24
24
  context "with a cookbook with a metadata file that specifies ChefDK's non-SPDX all rights reserved string with a different casing" do
25
25
  metadata_file "license 'All rights reserved'"
26
- it { is_expected.to_not violate_rule("FC069") }
26
+ it { is_expected.to_not violate_rule }
27
27
  end
28
28
 
29
29
  context "with a cookbook with a metadata file that specifies a license with parens" do
@@ -3,37 +3,37 @@ require "spec_helper"
3
3
  describe "FC070" do
4
4
  context "with a cookbook with a metadata file specifying a single valid supports statement" do
5
5
  metadata_file "supports 'ubuntu'"
6
- it { is_expected.to_not violate_rule("FC070") }
6
+ it { is_expected.to_not violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with a metadata file specifying multiple valid supports statements" do
10
10
  metadata_file "%w(ubuntu debian fedora).each do |plat|\nsupports plat\nend"
11
- it { is_expected.to_not violate_rule("FC070") }
11
+ it { is_expected.to_not violate_rule }
12
12
  end
13
13
 
14
14
  context "with a cookbook with a metadata file specifying a single invalid supports statement" do
15
15
  metadata_file "supports 'aws'"
16
- it { is_expected.to violate_rule("FC070") }
16
+ it { is_expected.to violate_rule }
17
17
  end
18
18
 
19
19
  context "with a cookbook with a metadata file specifying multiple invalid supports statements" do
20
20
  metadata_file "%w(aws oel rhel).each do |plat|\nsupports plat\nend"
21
- it { is_expected.to violate_rule("FC070") }
21
+ it { is_expected.to violate_rule }
22
22
  end
23
23
 
24
24
  context "with a cookbook with a metadata file specifying a mix of valid and invalid supports statements" do
25
25
  metadata_file "%w(aws oracle scientific).each do |plat|\nsupports plat\nend"
26
- it { is_expected.to violate_rule("FC070") }
26
+ it { is_expected.to violate_rule }
27
27
  end
28
28
 
29
29
  context "with a cookbook with a metadata file specifying a valid supports platform, but uppercase" do
30
30
  metadata_file "supports 'UBUNTU'"
31
- it { is_expected.to violate_rule("FC070") }
31
+ it { is_expected.to violate_rule }
32
32
  end
33
33
 
34
34
  context "with a cookbook with a metadata file specifying a valid supports platform, but with a version string" do
35
35
  metadata_file "supports 'ubuntu >= 16.04'"
36
- it { is_expected.to violate_rule("FC070") }
36
+ it { is_expected.to violate_rule }
37
37
  end
38
38
 
39
39
  context "with a cookbook with a metadata file specifying valid platforms from an array with leading whitespace" do
@@ -51,7 +51,7 @@ describe "FC070" do
51
51
  supports os
52
52
  end
53
53
  EOH
54
- it { is_expected.to_not violate_rule("FC070") }
54
+ it { is_expected.to_not violate_rule }
55
55
  end
56
56
 
57
57
  context "with a word list and a version constraint" do
@@ -60,6 +60,6 @@ describe "FC070" do
60
60
  supports os, ">= 5.0"
61
61
  end
62
62
  EOH
63
- it { is_expected.to_not violate_rule("FC070") }
63
+ it { is_expected.to_not violate_rule }
64
64
  end
65
65
  end
@@ -4,33 +4,33 @@ describe "FC071" do
4
4
  context "with a cookbook with a LICENSE file" do
5
5
  metadata_file "name 'mycookbook'"
6
6
  file("LICENSE")
7
- it { is_expected.not_to violate_rule("FC071") }
7
+ it { is_expected.not_to violate_rule }
8
8
  end
9
9
 
10
10
  context "with a cookbook without a LICENSE file" do
11
11
  metadata_file "name 'mycookbook'"
12
- it { is_expected.to violate_rule("FC071") }
12
+ it { is_expected.to violate_rule }
13
13
  end
14
14
 
15
15
  context "with a cookbook without a LICENSE file but with license of 'All Rights Reserved'" do
16
16
  metadata_file "license 'All Rights Reserved'"
17
- it { is_expected.not_to violate_rule("FC071") }
17
+ it { is_expected.not_to violate_rule }
18
18
  end
19
19
 
20
20
  context "with a cookbook without a LICENSE file but with license of 'all rights reserved'" do
21
21
  metadata_file "license 'all rights reserved'"
22
- it { is_expected.not_to violate_rule("FC071") }
22
+ it { is_expected.not_to violate_rule }
23
23
  end
24
24
 
25
25
  context "with a cookbook without a LICENSE file, using a sub folder" do
26
26
  subject { foodcritic_command("--no-progress", "mycookbook/") }
27
27
  file "mycookbook/metadata.rb"
28
- it { is_expected.to violate_rule("FC071") }
28
+ it { is_expected.to violate_rule }
29
29
  end
30
30
 
31
31
  context "with a cookbook without a LICENSE file but with license of 'All Rights Reserved', using a sub folder" do
32
32
  subject { foodcritic_command("--no-progress", "mycookbook/") }
33
33
  file "mycookbook/metadata.rb", "license 'All Rights Reserved'"
34
- it { is_expected.not_to violate_rule("FC071") }
34
+ it { is_expected.not_to violate_rule }
35
35
  end
36
36
  end
@@ -3,11 +3,11 @@ require "spec_helper"
3
3
  describe "FC072" do
4
4
  context "with a cookbook with a metadata file that contains an attribute keyword" do
5
5
  metadata_file "attribute 'something/something',\n display_name: 'something tuneable',\n description: 'This tunes something',\n default: 'none'"
6
- it { is_expected.to violate_rule("FC072") }
6
+ it { is_expected.to violate_rule }
7
7
  end
8
8
 
9
9
  context "with a cookbook with a metadata file that doesn't contain an attribute keyword" do
10
10
  metadata_file
11
- it { is_expected.not_to violate_rule("FC072") }
11
+ it { is_expected.not_to violate_rule }
12
12
  end
13
13
  end
@@ -3,45 +3,45 @@ require "spec_helper"
3
3
  describe "FC073" do
4
4
  context "with an empty cookbook" do
5
5
  metadata_file
6
- it { is_expected.to_not violate_rule("FC073") }
6
+ it { is_expected.to_not violate_rule }
7
7
  end
8
8
 
9
9
  context "with only attributes/default.rb" do
10
10
  metadata_file
11
11
  attributes_file
12
- it { is_expected.to_not violate_rule("FC073") }
12
+ it { is_expected.to_not violate_rule }
13
13
  end
14
14
 
15
15
  context "with only attributes.rb" do
16
16
  metadata_file
17
17
  file "attributes.rb"
18
- it { is_expected.to_not violate_rule("FC073") }
18
+ it { is_expected.to_not violate_rule }
19
19
  end
20
20
 
21
21
  context "with both attributes.rb and attributes/default.rb" do
22
22
  metadata_file
23
23
  file "attributes.rb"
24
24
  attributes_file
25
- it { is_expected.to violate_rule("FC073").in("attributes/default.rb") }
25
+ it { is_expected.to violate_rule.in("attributes/default.rb") }
26
26
  end
27
27
 
28
28
  context "with only recipes/default.rb" do
29
29
  metadata_file
30
30
  recipe_file
31
- it { is_expected.to_not violate_rule("FC073") }
31
+ it { is_expected.to_not violate_rule }
32
32
  end
33
33
 
34
34
  context "with only recipe.rb" do
35
35
  metadata_file
36
36
  file "recipe.rb"
37
- it { is_expected.to_not violate_rule("FC073") }
37
+ it { is_expected.to_not violate_rule }
38
38
  end
39
39
 
40
40
  context "with both recipe.rb and recipes/default.rb" do
41
41
  metadata_file
42
42
  file "recipe.rb"
43
43
  recipe_file
44
- it { is_expected.to violate_rule("FC073").in("recipes/default.rb") }
44
+ it { is_expected.to violate_rule.in("recipes/default.rb") }
45
45
  end
46
46
 
47
47
  context "with all four" do
@@ -50,7 +50,7 @@ describe "FC073" do
50
50
  file "recipe.rb"
51
51
  attributes_file
52
52
  recipe_file
53
- it { is_expected.to violate_rule("FC073").in("attributes/default.rb") }
54
- it { is_expected.to violate_rule("FC073").in("recipes/default.rb") }
53
+ it { is_expected.to violate_rule.in("attributes/default.rb") }
54
+ it { is_expected.to violate_rule.in("recipes/default.rb") }
55
55
  end
56
56
  end