chefspec 4.2.0 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +39 -16
  4. data/CHANGELOG.md +136 -72
  5. data/README.md +187 -13
  6. data/chefspec.gemspec +5 -5
  7. data/examples/batch/spec/run_spec.rb +5 -0
  8. data/examples/chef_gem/recipes/install.rb +8 -3
  9. data/examples/chef_gem/recipes/purge.rb +6 -3
  10. data/examples/chef_gem/recipes/reconfig.rb +6 -3
  11. data/examples/chef_gem/recipes/remove.rb +6 -3
  12. data/examples/chef_gem/recipes/upgrade.rb +6 -3
  13. data/examples/chocolatey_package/recipes/install.rb +6 -0
  14. data/examples/chocolatey_package/recipes/remove.rb +8 -0
  15. data/examples/chocolatey_package/recipes/upgrade.rb +8 -0
  16. data/examples/chocolatey_package/spec/install_spec.rb +21 -0
  17. data/examples/chocolatey_package/spec/remove_spec.rb +20 -0
  18. data/examples/chocolatey_package/spec/upgrade_spec.rb +20 -0
  19. data/examples/directory/recipes/create.rb +4 -0
  20. data/examples/directory/spec/create_spec.rb +4 -0
  21. data/examples/dpkg_package/spec/install_spec.rb +5 -0
  22. data/examples/dpkg_package/spec/purge_spec.rb +5 -0
  23. data/examples/dpkg_package/spec/remove_spec.rb +5 -0
  24. data/examples/dsc_resource/recipes/default.rb +20 -0
  25. data/examples/dsc_resource/spec/default_spec.rb +40 -0
  26. data/examples/env/spec/create_spec.rb +5 -0
  27. data/examples/env/spec/delete_spec.rb +5 -0
  28. data/examples/env/spec/modify_spec.rb +5 -0
  29. data/examples/ips_package/spec/install_spec.rb +5 -0
  30. data/examples/ips_package/spec/remove_spec.rb +5 -0
  31. data/examples/ips_package/spec/upgrade_spec.rb +5 -0
  32. data/examples/package/recipes/install.rb +4 -0
  33. data/examples/package/recipes/purge.rb +4 -0
  34. data/examples/package/recipes/reconfig.rb +4 -0
  35. data/examples/package/recipes/remove.rb +4 -0
  36. data/examples/package/recipes/upgrade.rb +4 -0
  37. data/examples/package/spec/install_spec.rb +4 -0
  38. data/examples/package/spec/purge_spec.rb +4 -0
  39. data/examples/package/spec/reconfig_spec.rb +4 -0
  40. data/examples/package/spec/remove_spec.rb +4 -0
  41. data/examples/package/spec/upgrade_spec.rb +4 -0
  42. data/examples/pacman_package/spec/install_spec.rb +5 -0
  43. data/examples/pacman_package/spec/purge_spec.rb +5 -0
  44. data/examples/pacman_package/spec/remove_spec.rb +5 -0
  45. data/examples/pacman_package/spec/upgrade_spec.rb +5 -0
  46. data/examples/powershell_script/spec/run_spec.rb +5 -0
  47. data/examples/reboot/recipes/cancel.rb +3 -0
  48. data/examples/reboot/recipes/now.rb +3 -0
  49. data/examples/reboot/recipes/request.rb +3 -0
  50. data/examples/reboot/spec/cancel_spec.rb +10 -0
  51. data/examples/reboot/spec/now_spec.rb +10 -0
  52. data/examples/reboot/spec/request_spec.rb +10 -0
  53. data/examples/render_file/spec/default_spec.rb +40 -0
  54. data/examples/rpm_package/spec/install_spec.rb +5 -0
  55. data/examples/rpm_package/spec/remove_spec.rb +5 -0
  56. data/examples/rpm_package/spec/upgrade_spec.rb +5 -0
  57. data/examples/server/spec/node_spec.rb +1 -1
  58. data/examples/server/spec/search_spec.rb +4 -0
  59. data/examples/step_into/providers/provides.rb +3 -0
  60. data/examples/step_into/recipes/default.rb +2 -0
  61. data/examples/step_into/resources/lwrp.rb +1 -1
  62. data/examples/step_into/resources/provides.rb +6 -0
  63. data/examples/step_into/spec/default_spec.rb +10 -2
  64. data/examples/windows_package/recipes/install.rb +13 -0
  65. data/examples/windows_package/recipes/remove.rb +13 -0
  66. data/examples/windows_package/spec/install_spec.rb +24 -0
  67. data/examples/windows_package/spec/remove_spec.rb +24 -0
  68. data/examples/windows_service/recipes/configure_startup.rb +13 -0
  69. data/examples/windows_service/recipes/disable.rb +13 -0
  70. data/examples/windows_service/recipes/enable.rb +13 -0
  71. data/examples/windows_service/recipes/reload.rb +13 -0
  72. data/examples/windows_service/recipes/restart.rb +13 -0
  73. data/examples/windows_service/recipes/start.rb +13 -0
  74. data/examples/windows_service/recipes/stop.rb +13 -0
  75. data/examples/windows_service/spec/configure_startup_spec.rb +24 -0
  76. data/examples/windows_service/spec/disable_spec.rb +24 -0
  77. data/examples/windows_service/spec/enable_spec.rb +24 -0
  78. data/examples/windows_service/spec/reload_spec.rb +24 -0
  79. data/examples/windows_service/spec/restart_spec.rb +24 -0
  80. data/examples/windows_service/spec/start_spec.rb +24 -0
  81. data/examples/windows_service/spec/stop_spec.rb +24 -0
  82. data/features/chocolatey_package.feature +29 -0
  83. data/features/dsc_resource.feature +18 -0
  84. data/features/reboot.feature +19 -0
  85. data/features/step_definitions/background_steps.rb +4 -1
  86. data/features/step_into.feature +7 -0
  87. data/features/support/env.rb +5 -4
  88. data/features/windows_package.feature +24 -0
  89. data/features/windows_service.feature +23 -0
  90. data/gemfiles/chefspec.gemfile +9 -0
  91. data/lib/chefspec/api/chocolatey_package.rb +107 -0
  92. data/lib/chefspec/api/directory.rb +10 -10
  93. data/lib/chefspec/api/dsc_resource.rb +49 -0
  94. data/lib/chefspec/api/group.rb +5 -5
  95. data/lib/chefspec/api/link.rb +10 -10
  96. data/lib/chefspec/api/mdadm.rb +5 -5
  97. data/lib/chefspec/api/reboot.rb +18 -0
  98. data/lib/chefspec/api/remote_directory.rb +10 -10
  99. data/lib/chefspec/api/route.rb +5 -5
  100. data/lib/chefspec/api/user.rb +5 -5
  101. data/lib/chefspec/api/windows_package.rb +86 -0
  102. data/lib/chefspec/api/windows_service.rb +286 -0
  103. data/lib/chefspec/api.rb +5 -0
  104. data/lib/chefspec/berkshelf.rb +7 -1
  105. data/lib/chefspec/coverage/filters.rb +2 -1
  106. data/lib/chefspec/coverage.rb +1 -1
  107. data/lib/chefspec/deprecations.rb +6 -2
  108. data/lib/chefspec/errors.rb +4 -0
  109. data/lib/chefspec/extensions/chef/lwrp_base.rb +23 -0
  110. data/lib/chefspec/file_cache_path_proxy.rb +15 -0
  111. data/lib/chefspec/matchers/render_file_matcher.rb +20 -2
  112. data/lib/chefspec/matchers/resource_matcher.rb +9 -2
  113. data/lib/chefspec/mixins/normalize.rb +7 -1
  114. data/lib/chefspec/policyfile.rb +62 -0
  115. data/lib/chefspec/renderer.rb +2 -4
  116. data/lib/chefspec/rspec.rb +3 -0
  117. data/lib/chefspec/server_methods.rb +1 -0
  118. data/lib/chefspec/server_runner.rb +9 -0
  119. data/lib/chefspec/solo_runner.rb +13 -3
  120. data/lib/chefspec/version.rb +1 -1
  121. data/lib/chefspec.rb +1 -1
  122. data/spec/unit/coverage/filters_spec.rb +60 -0
  123. data/spec/unit/deprecations_spec.rb +3 -1
  124. data/spec/unit/macros_spec.rb +1 -1
  125. data/spec/unit/matchers/render_file_matcher_spec.rb +11 -0
  126. data/spec/unit/renderer_spec.rb +20 -2
  127. data/spec/unit/server_runner_spec.rb +28 -0
  128. data/spec/unit/solo_runner_spec.rb +3 -1
  129. data/templates/errors/invalid_berkshelf_options.erb +4 -0
  130. data/templates/errors/may_need_to_specify_platform.erb +25 -0
  131. metadata +72 -18
  132. data/gemfiles/chef-11.14.0.gemfile +0 -5
  133. data/gemfiles/chef-11.16.0.gemfile +0 -5
  134. data/gemfiles/chef-12.0.0.gemfile +0 -5
  135. data/gemfiles/chef-master.gemfile +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75d0edf1b239bc0e3f2925b5369b05446c94e5af
4
- data.tar.gz: 05c29cdc3052844db10148b184b9b8476c88c016
3
+ metadata.gz: 9d6b31aada6aae7b0e9d80006a7f59b4928b4e18
4
+ data.tar.gz: ef5e7a024c06199069f4349264a69a113f096571
5
5
  SHA512:
6
- metadata.gz: fddcc55b0216f17d1d39eb0c8d5515a2efd09eb8f9db6e7ffc4affcc2c4c2f4c140d8e3a4abca91404b96040e8a3d5596dac00e5314fe617f7fd3c7df58fbe9d
7
- data.tar.gz: 49e6647e765e13381955b457ac19df13f000f974344030648356afc589ee1c646676a40033bf667df0f1f274b4a62cb9e9eda38b48eadaf437628e962435be7e
6
+ metadata.gz: caac16818a6152ae7cf12e4cc71a1649915be6d22fa175f486035009426e6c27d140e5a67833629976360765a99c4bbfbc1465c188ae7e8b4b66bf99066641d1
7
+ data.tar.gz: ad3ab1cf59daf6ea6f2aec22b7b417d96472d5625b927616d768e452aa30a12e8a05748e9871ea17b4544dba91c53290a4d0485dbbcf9af400035f06c54179b2
data/.gitignore CHANGED
@@ -11,5 +11,6 @@ Gemfile.lock
11
11
  gemfiles/*.lock
12
12
  .bundle
13
13
  bin
14
+ binstubs
14
15
  vendor
15
16
  .rspec
data/.travis.yml CHANGED
@@ -1,31 +1,54 @@
1
+ language: ruby
2
+ cache: bundler
1
3
  sudo: false
2
4
 
5
+ before_install:
6
+ - gem install bundler
7
+
3
8
  rvm:
4
- - 2.0.0
5
9
  - 2.1
10
+ - 2.2
6
11
 
7
12
  branches:
8
13
  only:
9
14
  - master
10
15
 
11
- notifications:
12
- irc:
13
- channels:
14
- - "chat.freenode.net#chefspec"
15
- use_notice: true
16
- skip_join: true
17
- template:
18
- - "%{message} (%{author}): %{build_url}"
19
-
20
16
  bundler_args: --jobs 7 --retry 3
21
17
 
22
- gemfile:
23
- - gemfiles/chef-11.14.0.gemfile
24
- - gemfiles/chef-11.16.0.gemfile
25
- - gemfiles/chef-12.0.0.gemfile
26
- - gemfiles/chef-master.gemfile
18
+ gemfile: gemfiles/chefspec.gemfile
19
+
20
+ env:
21
+ - CHEF_VERSION=master
22
+ - CHEF_VERSION=12.8.1
23
+ - CHEF_VERSION=12.7.2
24
+ - CHEF_VERSION=12.6.0
25
+ - CHEF_VERSION=12.5.1
26
+ - CHEF_VERSION=12.4.3
27
+ - CHEF_VERSION=12.4.0
28
+ - CHEF_VERSION=12.3.0
29
+ - CHEF_VERSION=12.2.1
30
+ - CHEF_VERSION=12.1.2
31
+ - CHEF_VERSION=12.1.1
32
+ - CHEF_VERSION=12.1.0
33
+ - CHEF_VERSION=12.0.3
27
34
 
28
35
  matrix:
29
36
  fast_finish: true
30
37
  allow_failures:
31
- - gemfile: gemfiles/chef-master.gemfile
38
+ - env: CHEF_VERSION=master
39
+ include:
40
+ - env: CHEF_VERSION=11.18.6
41
+ rvm: 1.9.3
42
+ - env: CHEF_VERSION=11.18.0
43
+ rvm: 1.9.3
44
+ - env: CHEF_VERSION=11.16.4
45
+ rvm: 1.9.3
46
+ - env: CHEF_VERSION=11.16.2
47
+ rvm: 1.9.3
48
+ - env: CHEF_VERSION=11.16.0
49
+ rvm: 1.9.3
50
+ - env: CHEF_VERSION=11.14.6
51
+ rvm: 1.9.3
52
+ - env: CHEF_VERSION=11.14.2
53
+ rvm: 1.9.3
54
+
data/CHANGELOG.md CHANGED
@@ -1,13 +1,77 @@
1
- CHANGELOG for ChefSpec
2
- ======================
1
+ # CHANGELOG for ChefSpec
2
+
3
+ ## 4.7.0 (May 13, 2016)
4
+
5
+ IMPROVEMENTS
6
+
7
+ - Support Chef Solo actually being local mode (per Chef RFC 31)
8
+
9
+ ## 4.6.1 (March 29, 2016)
10
+
11
+ BUG FIXES
12
+
13
+ - Use the same Chef :file_cache_path in every ChefSpec converge to prevent large numbers of LWRP deprecation warnings
14
+ - Require Fauxhai ~3.2 to prevent ChefSpec spec failures
15
+ - Require Rake < 11.0 to prevent failures
16
+
17
+ ## 4.6.0 (March 7, 2016)
18
+
19
+ IMPROVEMENTS
20
+
21
+ - Add support for adding `berkshelf_options` to the RSpec config
22
+ - Add `chocolately_package` matches
23
+ - Support `do..end` style syntax in block expectations
24
+ - Output a diff when multi-line resource parameters are unmatched
25
+
26
+ BUG FIXES
27
+
28
+ - Update tests to include better descriptions and feature names
29
+ - Add support for Policyfile workflow
30
+
31
+ ## 4.5.0 (December 4, 2015)
32
+
33
+ IMPROVEMENTS
34
+ - Update Fauxhai dependency to 3.0 to bring in newly generated mocked Ohai data
35
+
36
+ ## 4.4.0 (September 18, 2015)
37
+
38
+ BUG FIXES
39
+ - Documentation improvements (using regex in stubbed commands, chef 12+ custom matcher gotchas)
40
+ - Spec suite improvements (dsc resource specs, platform specific configurations)
41
+ - Chef 12+ platform specific resource loading related error
42
+
43
+ IMPROVEMENTS
44
+ - Support for policy files
45
+
46
+ ## 4.3.0 (July 16, 2015)
47
+
48
+ BUG FIXES:
49
+ - Improved documentation
50
+ - Use TemplateContext's `_extend_modules` for passing on template helper
51
+ modules to nested partial templates
52
+ - Only exit if the status is a failure [GH-565]
53
+ - Fix load order on Windows when using the `rights` attributes
54
+ - Improve testing matrix and remove deprecated Chef versions
55
+ - Suppress chef_gem compile_time warnings
56
+ - Fix exceptions on converge for Chef 12.1.0 masking
57
+ - Update Librarian `Cheffile` site URL to supermarket.chef.io
58
+ - Filter Windows and Unix paths for test coverage report with Berkshelf
59
+
60
+ IMPROVEMENTS:
61
+ - Added possibility to specify file_cache_path globally
62
+ - Added new capabilities for reboot resource
63
+ - Use `Chef::Resource#declared_type` first if available (Chef >= 12),
64
+ otherwise fall back to `Chef::Resource#resource_name` (Chef <= 11)
65
+ - Extend render_file to yield the content as a block
66
+ - Add windows_service resource
3
67
 
4
68
  ## 4.2.0 (December 25, 2014)
5
- Bugfixes:
69
+ BUG FIXES:
6
70
  - Updated README grep examples
7
71
  - Fix various typographical errors
8
72
  - Improved error message when using a deprecated resource matcher
9
73
 
10
- Improvements:
74
+ IMPROVEMENTS:
11
75
  - Add support for Chef 12
12
76
  - Added support for environments in Chef Solo
13
77
  - Fix location definition for caching
@@ -15,16 +79,16 @@ Improvements:
15
79
  - Update support for Chef 12
16
80
 
17
81
  ## 4.1.1 (October 13, 2014)
18
- Bugfixes:
82
+ BUG FIXES:
19
83
  - Fix total fail on my part with deprecations and add test coverage
20
84
  - Do not validate cookbooks on upload (speed)
21
85
 
22
86
  ## 4.1.0 (October 12, 2014)
23
- Bugfixes:
87
+ BUG FIXES:
24
88
  - Bump the minimum required version of Chef to 11.14
25
89
  - Filter resources that have no source line in the coverage report - this is related to a bug in Chef where, when cloning a resource, both the clone and the original resource lose their metadata
26
90
 
27
- Improvements:
91
+ IMPROVEMENTS:
28
92
  - Allow multiple instances of a Chef Server instance
29
93
  - Separate ChefSpec::Runner into `ChefSpec::SoloRunner` and `ChefSpec::ServerRunner`
30
94
  - Preliminary support for Chef 12 alpha (not 100% complete)
@@ -34,19 +98,19 @@ Improvements:
34
98
  - Deprecate `ChefSpec::Runner.new` - you should specify if you want a `SoloRunner` or `ServerRunner`
35
99
  - Updated documentation
36
100
 
37
- Breaking changes:
38
- - Due to the new `ServerRunner`, the `ChefSpec::Server` singleton object has been deprecated. As much as I would like to provide a backwards-compatible interface, there is no way to do so (as the code now supports multipel Chef Server instances). Sorry :(.
101
+ BREAKING CHANGES:
102
+ - Due to the new `ServerRunner`, the `ChefSpec::Server` singleton object has been deprecated. As much as I would like to provide a backwards-compatible interface, there is no way to do so (as the code now supports multiple Chef Server instances). Sorry :(.
39
103
  - Remove old deprecations - this is not really a breaking change, but the v2.0.0 deprecations have been removed in favor of new ones
40
104
 
41
105
  ## 4.0.2 (August 13, 2014)
42
- Bugfixes:
106
+ BUG FIXES:
43
107
  - Fix a regression caused by a new version of Chef Zero in single_org mode
44
108
 
45
- Improvements:
109
+ IMPROVEMENTS:
46
110
  - Test against Chef 11.14.0 in the Travis matrix
47
111
 
48
112
  ## 4.0.1 (June 27, 2014)
49
- Bugfixes:
113
+ BUG FIXES:
50
114
  - Fix class comparisons
51
115
  - Update ChefZero API to work again
52
116
  - Use proper cookbook in the template_finder
@@ -54,11 +118,11 @@ Bugfixes:
54
118
  - Various documentation updates
55
119
 
56
120
  ## 4.0.0 (June 2, 2014)
57
- Breaking Changes:
121
+ BREAKING CHANGES:
58
122
  - **Upgraded to RSpec 3!** RSpec 3 brings many new API changes and syntaxes
59
123
  - **Bump minimum required Chef version to 11.12!** Without this change, Chef Zero will blow up
60
124
 
61
- Bugfixes:
125
+ BUG FIXES:
62
126
  - Gracefully fail if a resource does not report it's source line in the reporter
63
127
  - Pull the correct cookbook folder from the stack on Windows (88bfc6)
64
128
  - Cover resources in render_file matchers for reporting
@@ -71,12 +135,12 @@ Bugfixes:
71
135
  - Fix a bug that will happen in later Chef versions because FreeBSD is evil (13ff143)
72
136
  - Do not pass local file paths to `preferred_filename_on_disk_location`
73
137
 
74
- Features:
138
+ FEATURES:
75
139
  - Add runner methods for all the bash, csh, perl, etc resources
76
140
  - Upgraded fauxhai dependency and specs
77
141
  - Upgrade Chef Zero for multi-org support
78
142
 
79
- Improvements:
143
+ IMPROVEMENTS:
80
144
  - Improved documentation around the `define_runner_method` method
81
145
  - Update badges to be all SVG
82
146
  - Test on Ruby 2.1
@@ -85,46 +149,46 @@ Improvements:
85
149
 
86
150
 
87
151
  ## 3.4.0 (March 16, 2014)
88
- Bugfixes:
152
+ BUG FIXES:
89
153
  - Restore Berkshelf 2 support (missing edge case)
90
154
  - Add negative failure message for subscribes/notifies matchers
91
155
 
92
- Features:
156
+ FEATURES:
93
157
  - Added `do_nothing` matcher for asserting a resource performed no actions
94
158
 
95
- Improvements:
159
+ IMPROVEMENTS:
96
160
  - Increased spec coverage for matchers
97
161
  - Support RSpec matchers in `with_content`
98
162
 
99
163
  ## 3.3.1 (March 11, 2014)
100
- Bugfixes:
164
+ BUG FIXES:
101
165
  - Various typographical fixes in the README
102
166
  - Remove unused JSON report
103
167
  - Restore coverage reporting for Berkshelf 2 users
104
168
  - Minor formatting changes for errors
105
169
 
106
- Improvements:
170
+ IMPROVEMENTS:
107
171
  - Remove dependency on i18n and use native ERB instead
108
172
  - Vendor Berkshelf/Librarian in a "cookbooks" directory so we can shorten the pathname during coverage reporting
109
173
 
110
174
  ## 3.3.0 (March 9, 2014)
111
- Bugfixes:
175
+ BUG FIXES:
112
176
  - Update documentation for setting `automatic` attributes
113
177
  - Update documentation for stubbing data_bags
114
178
  - Use a non-internal RSpec variable name for expecting exceptions
115
179
  - Fix the airity of the `stub_node` method
116
180
 
117
- Improvements:
181
+ IMPROVEMENTS:
118
182
  - Better filtering protocols for resource coverage
119
183
 
120
184
  ## 3.2.0 (January 31, 2014)
121
- Bugfixes:
185
+ BUG FIXES:
122
186
  - Fix coverage calculation when there are no resources in the collection
123
187
  - Fix misplaced quote in matcher output
124
188
  - Include all files in generated gem
125
- - Ensure compatability with Chef HEAD
189
+ - Ensure compatibility with Chef HEAD
126
190
 
127
- Improvements:
191
+ IMPROVEMENTS:
128
192
  - Test Ruby 2.1 on Travis
129
193
  - Miscellaneous README typos
130
194
  - Add `subscribe_to` matchers
@@ -132,45 +196,45 @@ Improvements:
132
196
  - Add support for passing a `node` object directly to the server `create_node` method
133
197
 
134
198
  ## 3.1.4 (January 3, 2014)
135
- Bugfixes:
199
+ BUG FIXES:
136
200
  - Correctly expand the node's run_list in server mode
137
201
  - Actually package i18n translations with the cookbook
138
202
 
139
- Improvements:
203
+ IMPROVEMENTS:
140
204
  - Document setting a node's role
141
205
  - Add examples and features for `stub_node`
142
206
 
143
207
  ## 3.1.3 (January 2, 2014)
144
- Bugfixes:
208
+ BUG FIXES:
145
209
  - Fix broken deprecations module
146
210
  - Update a broken test ([@bknowles][])
147
211
 
148
- Improvements:
212
+ IMPROVEMENTS:
149
213
  - Better gem description on GitHub and Rubygems
150
214
  - Helper support for template rendering (Chef 11.4+) ([@geraud][])
151
215
 
152
216
  ## 3.1.2 (December 30, 2013)
153
- Bugfixes:
217
+ BUG FIXES:
154
218
  - Require i18n 0.6.9 or higher (but less than 1.0.0) ([#289](https://github.com/sethvargo/chefspec/issues/245))
155
219
 
156
220
  ## 3.1.1 (December 29, 2013)
157
- Bugfixes:
221
+ BUG FIXES:
158
222
  - Handle duplicate resources in the coverage reporter
159
223
 
160
224
  ## 3.1.0 (December 29, 2013)
161
- Bugfixes:
225
+ BUG FIXES:
162
226
  - Only remove existing LWRP resources and providers when a new one is encountered ([@student][])
163
227
  - Attempt to coerce dashes to underscores in LWRPs
164
228
  - Various documentation fixes and typos
165
229
 
166
- Improvements:
230
+ IMPROVEMENTS:
167
231
  - Don't include `deprecations` module by default
168
232
  - Add examples for stubbing commands across recipes
169
233
  - Yield a block after cookbooks are compiled but before they are converged ([@rteabeault][])
170
234
  - Add IRC Channel #chefspec
171
235
  - Raise a nice error when `cookbook_path` cannot be determined ([@ryotarai][])
172
236
 
173
- Features:
237
+ FEATURES:
174
238
  - Add support for Librarian ([@mlafeldt][])
175
239
  - Add Cacher module for caching runner results ([@sethvargo][] & [@DracoAter][])
176
240
  - Add Chef Zero (server) mode ([@sethvargo][])
@@ -178,13 +242,13 @@ Features:
178
242
  - Use i18n (internationalization) ([@sethvargo][])
179
243
 
180
244
  ## 3.0.2 (November 6, 2013)
181
- Bugfixes:
245
+ BUG FIXES:
182
246
  - Update links to point at new repository location
183
247
  - Deleted relish docs to remove confusion
184
248
  - Bump fauxhai dependency to 2.0 (removing the HTTParty transitive dependency)
185
249
  - Convert resource names with dashes to underscores when stepping into them
186
250
 
187
- Improvements:
251
+ IMPROVEMENTS:
188
252
  - Added a "what people are saying" section to the README - if you have something cool to say about ChefSpec, let me know!
189
253
  - Add a link to [`knife-spec`](https://github.com/sethvargo/knife-spec)
190
254
  - Test against Chef 11.8
@@ -193,11 +257,11 @@ Improvements:
193
257
 
194
258
 
195
259
  ## 3.0.1 (October 22, 2013)
196
- Bugfixes:
260
+ BUG FIXES:
197
261
  - Fix an issue where LWRPs were not properly stepped into when `use_inline_resources` was specified ([#244](https://github.com/sethvargo/chefspec/issues/244))
198
262
  - Coerce `render_file` `@expected_content` to a string before asserting if content is included ([#243](https://github.com/sethvargo/chefspec/issues/243))
199
263
 
200
- Improvements:
264
+ IMPROVEMENTS:
201
265
  - Miscellaneous documentation fixes and additions ([#245](https://github.com/sethvargo/chefspec/issues/245), [#241](https://github.com/sethvargo/chefspec/issues/241), [#238](https://github.com/sethvargo/chefspec/issues/238))
202
266
 
203
267
 
@@ -230,7 +294,7 @@ Breaking:
230
294
  - `Runner#resources` converted from an Array to a Hash. This is to ensure that all resource actions are added (when multiple calls to run_action exist (#201)). This also drastically improves resource lookup times.
231
295
  - `Resource#actions` is no longer maniuplated. Instead, a new method `Resource#performed_actions` now keeps track of the actions taken on a resource (as well as the phase in which they were taken), preserving the original state of the resource.
232
296
 
233
- Features:
297
+ FEATURES:
234
298
  - Added a new `render_file` action to replace `create_file_with_content`. This matcher will render the contents of any file to a string and then optionally compare the result if given a `with` chainable.
235
299
  - All resources now accept a `with` chainable for matching specific resource attributes.
236
300
  - Windows attributes are now testable on non-Windows systems (like `inherits`)
@@ -262,7 +326,7 @@ Features:
262
326
  - Add `chefspec/berkshelf` for easily integrating specs with Berkshelf (2 & 3)
263
327
  - Add `.at_compile_time` and `.at_converge_time` matchers for asserting which phase of the Chef run a resource should be run
264
328
 
265
- Improvements:
329
+ IMPROVEMENTS:
266
330
  - Move to inline documentation (Yard)
267
331
  - Implement InProcess Aruba testing for ultra-fast tests
268
332
  - Create "examples" directory for testing and demonstration
@@ -276,11 +340,11 @@ Improvements:
276
340
 
277
341
  ## 2.0.1 (August 28, 2013)
278
342
 
279
- Bugfixes:
343
+ BUG FIXES:
280
344
 
281
345
  - Add missing second optional parameter to `Hash#respond_to?` monkey patch
282
346
 
283
- Features
347
+ FEATURES
284
348
 
285
349
  - Improve error message when using a regular express
286
350
  - Improve documentation for Python packages
@@ -291,7 +355,7 @@ Breaking:
291
355
 
292
356
  - Remove support for REE ([@andrewgross][] for the CI)
293
357
 
294
- Bugfixes:
358
+ BUG FIXES:
295
359
 
296
360
  - Better failure message for `create_remote_file` ([@tmatilai][])
297
361
  - Add `cookbook_file` as an accepted type to the `create_file` matchers ([@dafyddcrosby][])
@@ -302,7 +366,7 @@ Bugfixes:
302
366
  - Fix CI ([@sethvargo][])
303
367
  - Match File actions as an array ([@sethvargo][])
304
368
 
305
- Features:
369
+ FEATURES:
306
370
 
307
371
  - Extend `ruby_block` matcher to accept regular expressions ([@ssimeonov][])
308
372
  - Add `create_remote_file_if_missing` matcher ([@jimhopp][])
@@ -313,47 +377,47 @@ Features:
313
377
 
314
378
  ## 1.3.1 (June 10, 2013)
315
379
 
316
- Bugfixes:
380
+ BUG FIXES:
317
381
 
318
382
  - Allow the user to override `cookbook_path` again
319
383
 
320
384
  ## 1.3.0 (June 6, 2013)
321
385
 
322
- Features:
386
+ FEATURES:
323
387
 
324
388
  - Added the ability to evaluate `only_if` and `not_if` conditional guards and
325
389
  support for stubbing shell guards (#142, #144).
326
390
  - New `described_recipe` and `described_cookbook` helpers to keep your specs
327
391
  DRY (#140). Thanks Andrey Chernih.
328
392
 
329
- Bugfixes:
393
+ BUG FIXES:
330
394
 
331
395
  - Ensure that Ohai plugin reloader works with ChefSpec (#141). Thanks Andrey
332
396
  Chernih.
333
397
 
334
398
  ## 1.2.0 (May 16, 2013)
335
399
 
336
- Features:
400
+ FEATURES:
337
401
 
338
402
  - Add support for partial files (@RanjibDey)
339
403
  - Automatically check certain directories for cookbooks (@sethvargo)
340
404
 
341
405
  ## 1.1.0 (May 10, 2013)
342
406
 
343
- Features:
407
+ FEATURES:
344
408
 
345
409
  - Upgrade to newest version of fauxhai (@tmatilai)
346
410
  - Make `find_resource` a public method (@adamhjk)
347
411
  - Add path support (from fauxhai) (@RanjibDey)
348
412
  - Custom Chef formatter for ChefSpec (removes pesky output) (@sethvargo)
349
413
 
350
- Bugfixes:
414
+ BUG FIXES:
351
415
 
352
416
  - Remove pesky output from Chef 11
353
417
 
354
418
  ## 1.0.0 (April 22, 2013)
355
419
 
356
- Features:
420
+ FEATURES:
357
421
 
358
422
  - Add support for matching file content using Regular Expressions (@ketan)
359
423
  - Add support for `ruby_block` matcher (Andrey Vorobiev)
@@ -371,7 +435,7 @@ Features:
371
435
  - Relax gemspec constraints (@juliandunn)
372
436
  - Improve documentation and examples
373
437
 
374
- Bugfixes:
438
+ BUG FIXES:
375
439
 
376
440
  - Fix Rubygems/Bundler 2.0 compatibility issues
377
441
  - Upgrade to newest RSpec
@@ -380,7 +444,7 @@ Bugfixes:
380
444
 
381
445
  ## 0.9.0 (November 10, 2012)
382
446
 
383
- Features:
447
+ FEATURES:
384
448
 
385
449
  - Support added for the `user` resource (#6). Thanks Ranjib Dey.
386
450
  - Support for making assertions about notifications added (#49). Thanks to
@@ -397,7 +461,7 @@ Features:
397
461
  to Ketan Padegaonkar.
398
462
  - Support added for the `chef_gem` resource (#74). Thanks to Jim Hopp.
399
463
 
400
- Bugfixes:
464
+ BUG FIXES:
401
465
 
402
466
  - Avoid failure if template path is not writable (#48). Thanks to Augusto
403
467
  Becciu and Jim Hopp.
@@ -413,7 +477,7 @@ Bugfixes:
413
477
 
414
478
  ## 0.8.0 (September 14, 2012)
415
479
 
416
- Features:
480
+ FEATURES:
417
481
 
418
482
  - LWRP support added (#40). You can now make assertions about the resources
419
483
  created by a provider by telling chefspec to [step into a provider
@@ -421,14 +485,14 @@ Features:
421
485
  Thanks to Augusto Becciu for implementing this feature.
422
486
  - Updated for compatibility with Chef 10.14. Thanks Augusto Becciu.
423
487
 
424
- Bugfixes:
488
+ BUG FIXES:
425
489
 
426
490
  - Template paths are no longer hard-coded to live under `default` (#32).
427
491
  Thanks Augusto Becciu.
428
492
 
429
493
  ## 0.7.0 (August 27, 2012)
430
494
 
431
- Features:
495
+ FEATURES:
432
496
 
433
497
  - Cron resource support added (#33). Thanks Alexander Tamoykin.
434
498
  - RSpec dependency
@@ -437,14 +501,14 @@ Features:
437
501
  [named subject](http://blog.davidchelimsky.net/2012/05/13/spec-smell-explicit-use-of-subject/)
438
502
  support (#37). Thanks Doug Ireton.
439
503
 
440
- Bugfixes:
504
+ BUG FIXES:
441
505
 
442
506
  - Correctly infer the default `cookbook_path` on Windows (#38). Thanks Torben
443
507
  Knerr.
444
508
 
445
509
  ## 0.6.1 (June 21, 2012)
446
510
 
447
- Features:
511
+ FEATURES:
448
512
 
449
513
  - With the
450
514
  [release of Chef 10.12.0](http://www.opscode.com/blog/2012/06/19/chef-10-12-0-released/)
@@ -454,7 +518,7 @@ Features:
454
518
 
455
519
  ## 0.6.0 (May 31, 2012)
456
520
 
457
- Features:
521
+ FEATURES:
458
522
 
459
523
  - Service matchers extended to add support for the `:nothing` and `:enabled`
460
524
  actions. Thanks to Steve Lum (#20).
@@ -466,53 +530,53 @@ Features:
466
530
 
467
531
  ## 0.5.0 (February 20, 2012)
468
532
 
469
- Features:
533
+ FEATURES:
470
534
 
471
535
  - Thanks to Chris Griego and Morgan Nelson for these improvements:
472
536
  - Support both arrays and raw symbols for actions in the file content matcher (#14).
473
537
  - Add support for cookbook_file resources (#14).
474
538
  - Support added for `gem_package` resources. Thanks to Jim Hopp from Lookout (#16).
475
539
 
476
- Bugfixes:
540
+ BUG FIXES:
477
541
 
478
542
  - Set the client_key to nil so that Chef::Search::Query.new doesn't raise (#14). Thanks Chris Griego and Morgan Nelson.
479
543
 
480
544
  ## 0.4.0 (November 14, 2011)
481
545
 
482
- Features:
546
+ FEATURES:
483
547
 
484
548
  - Ruby 1.9.3 is now supported.
485
549
  - The `create_file_with_content` matcher now matches on partial content (#13). This is an API behaviour change but
486
550
  sufficiently minor and unlikely to break existing specs that I'm not bumping the major version. Thanks Chris Griego
487
551
  and Morgan Nelson from getaroom.
488
552
 
489
- Bugfixes:
553
+ BUG FIXES:
490
554
 
491
555
  - Fixed a bug in the `install_package_at_version` matcher where it would error if the package action was not
492
556
  explicitly specified (#13). Thanks Chris Griego and Morgan Nelson from getaroom.
493
557
 
494
558
  ## 0.3.0 (October 2, 2011)
495
559
 
496
- Features:
560
+ FEATURES:
497
561
 
498
562
  - [Added new matcher](https://www.relishapp.com/sethvargo/chefspec/docs/write-examples-for-templates) `create_file_with_content` for verifying Chef `template` resource generated content.
499
563
  - [Knife plugin](https://www.relishapp.com/sethvargo/chefspec/docs/generate-placeholder-examples) added to generate placeholder examples.
500
564
 
501
565
  ## 0.2.1 (September 21, 2011)
502
- Bugfixes:
566
+ BUG FIXES:
503
567
 
504
568
  - Fixed typo in 0.2.0 botched release. Pro-tip: run your tests.
505
569
 
506
570
  ## 0.2.0 (September 21, 2011)
507
571
 
508
- Features:
572
+ FEATURES:
509
573
 
510
574
  - Significantly improved performance by not invoking OHAI.
511
575
  - ChefRunner constructor now accepts a block to set node attributes.
512
576
  - ChefRunner constructor now takes an options hash.
513
577
  - Converge now returns a reference to the ChefRunner to support calling converge in a let block.
514
578
 
515
- Bugfixes:
579
+ BUG FIXES:
516
580
 
517
581
  - Removed LWRP redefinition warnings.
518
582
  - Reset run_list between calls to converge.
@@ -520,18 +584,18 @@ Bugfixes:
520
584
 
521
585
  ## 0.1.0 (August 9, 2011)
522
586
 
523
- Features:
587
+ FEATURES:
524
588
 
525
589
  - Support for Chef 0.1.x (#2)
526
590
  - Support MRI 1.9.2 (#3)
527
591
 
528
- Bugfixes:
592
+ BUG FIXES:
529
593
 
530
594
  - Added specs.
531
595
 
532
596
  ## 0.0.2 (July 31, 2011)
533
597
 
534
- Bugfixes:
598
+ BUG FIXES:
535
599
 
536
600
  - Corrected gem dependencies.
537
601