chefspec 7.3.2 → 7.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (637) hide show
  1. checksums.yaml +4 -4
  2. data/lib/chefspec/extensions/.DS_Store +0 -0
  3. data/lib/chefspec/extensions/chef/.DS_Store +0 -0
  4. data/lib/chefspec/version.rb +1 -1
  5. metadata +7 -666
  6. data/.gitignore +0 -16
  7. data/.travis.yml +0 -48
  8. data/CHANGELOG.md +0 -819
  9. data/CONTRIBUTING.md +0 -52
  10. data/Gemfile +0 -23
  11. data/ISSUES.md +0 -41
  12. data/README.md +0 -571
  13. data/README_old.md +0 -1291
  14. data/Rakefile +0 -74
  15. data/chefspec.gemspec +0 -31
  16. data/examples/apt_package/recipes/install.rb +0 -13
  17. data/examples/apt_package/recipes/lock.rb +0 -13
  18. data/examples/apt_package/recipes/purge.rb +0 -13
  19. data/examples/apt_package/recipes/reconfig.rb +0 -13
  20. data/examples/apt_package/recipes/remove.rb +0 -13
  21. data/examples/apt_package/recipes/unlock.rb +0 -13
  22. data/examples/apt_package/recipes/upgrade.rb +0 -13
  23. data/examples/apt_package/spec/install_spec.rb +0 -26
  24. data/examples/apt_package/spec/lock_spec.rb +0 -22
  25. data/examples/apt_package/spec/purge_spec.rb +0 -22
  26. data/examples/apt_package/spec/reconfig_spec.rb +0 -22
  27. data/examples/apt_package/spec/remove_spec.rb +0 -22
  28. data/examples/apt_package/spec/unlock_spec.rb +0 -22
  29. data/examples/apt_package/spec/upgrade_spec.rb +0 -22
  30. data/examples/apt_repository/recipes/add.rb +0 -8
  31. data/examples/apt_repository/recipes/remove.rb +0 -4
  32. data/examples/apt_repository/spec/add_spec.rb +0 -17
  33. data/examples/apt_repository/spec/remove_spec.rb +0 -12
  34. data/examples/apt_update/recipes/periodic.rb +0 -5
  35. data/examples/apt_update/recipes/update.rb +0 -3
  36. data/examples/apt_update/spec/periodic_spec.rb +0 -17
  37. data/examples/apt_update/spec/update_spec.rb +0 -12
  38. data/examples/attributes/attributes/default.rb +0 -1
  39. data/examples/attributes/recipes/default.rb +0 -4
  40. data/examples/attributes/spec/default_spec.rb +0 -20
  41. data/examples/batch/recipes/run.rb +0 -9
  42. data/examples/batch/spec/run_spec.rb +0 -22
  43. data/examples/bff_package/recipes/install.rb +0 -13
  44. data/examples/bff_package/recipes/purge.rb +0 -13
  45. data/examples/bff_package/recipes/remove.rb +0 -13
  46. data/examples/bff_package/recipes/upgrade.rb +0 -13
  47. data/examples/bff_package/spec/install_spec.rb +0 -23
  48. data/examples/bff_package/spec/purge_spec.rb +0 -19
  49. data/examples/bff_package/spec/remove_spec.rb +0 -19
  50. data/examples/bff_package/spec/upgrade_spec.rb +0 -19
  51. data/examples/cab_package/recipes/install.rb +0 -13
  52. data/examples/cab_package/recipes/remove.rb +0 -13
  53. data/examples/cab_package/spec/install_spec.rb +0 -28
  54. data/examples/cab_package/spec/remove_spec.rb +0 -24
  55. data/examples/cached/recipes/default.rb +0 -1
  56. data/examples/cached/spec/default_spec.rb +0 -14
  57. data/examples/chef_gem/recipes/install.rb +0 -18
  58. data/examples/chef_gem/recipes/purge.rb +0 -16
  59. data/examples/chef_gem/recipes/reconfig.rb +0 -16
  60. data/examples/chef_gem/recipes/remove.rb +0 -16
  61. data/examples/chef_gem/recipes/upgrade.rb +0 -16
  62. data/examples/chef_gem/spec/install_spec.rb +0 -23
  63. data/examples/chef_gem/spec/purge_spec.rb +0 -19
  64. data/examples/chef_gem/spec/reconfig_spec.rb +0 -19
  65. data/examples/chef_gem/spec/remove_spec.rb +0 -19
  66. data/examples/chef_gem/spec/upgrade_spec.rb +0 -19
  67. data/examples/chocolatey_package/recipes/install.rb +0 -6
  68. data/examples/chocolatey_package/recipes/remove.rb +0 -8
  69. data/examples/chocolatey_package/recipes/upgrade.rb +0 -8
  70. data/examples/chocolatey_package/spec/install_spec.rb +0 -19
  71. data/examples/chocolatey_package/spec/remove_spec.rb +0 -18
  72. data/examples/chocolatey_package/spec/upgrade_spec.rb +0 -18
  73. data/examples/compile_time/recipes/default.rb +0 -3
  74. data/examples/compile_time/spec/default_spec.rb +0 -29
  75. data/examples/cookbook_file/recipes/create.rb +0 -15
  76. data/examples/cookbook_file/recipes/create_if_missing.rb +0 -15
  77. data/examples/cookbook_file/recipes/delete.rb +0 -15
  78. data/examples/cookbook_file/recipes/touch.rb +0 -15
  79. data/examples/cookbook_file/spec/create_if_missing_spec.rb +0 -28
  80. data/examples/cookbook_file/spec/create_spec.rb +0 -32
  81. data/examples/cookbook_file/spec/delete_spec.rb +0 -19
  82. data/examples/cookbook_file/spec/touch_spec.rb +0 -19
  83. data/examples/core/recipes/default.rb +0 -1
  84. data/examples/core/spec/default_spec.rb +0 -7
  85. data/examples/core/spec/non_recipe_spec.rb +0 -5
  86. data/examples/cron/recipes/create.rb +0 -10
  87. data/examples/cron/recipes/delete.rb +0 -9
  88. data/examples/cron/spec/create_spec.rb +0 -19
  89. data/examples/cron/spec/delete_spec.rb +0 -15
  90. data/examples/custom_matcher/libraries/matcher.rb +0 -1
  91. data/examples/custom_matcher/providers/thing.rb +0 -2
  92. data/examples/custom_matcher/recipes/install.rb +0 -13
  93. data/examples/custom_matcher/recipes/remove.rb +0 -13
  94. data/examples/custom_matcher/resources/thing.rb +0 -5
  95. data/examples/custom_matcher/spec/install_spec.rb +0 -27
  96. data/examples/custom_matcher/spec/remove_spec.rb +0 -23
  97. data/examples/custom_resource/recipes/default.rb +0 -1
  98. data/examples/custom_resource/resources/custom_resource.rb +0 -9
  99. data/examples/custom_resource/spec/default_spec.rb +0 -18
  100. data/examples/custom_resource_block/resources/default.rb +0 -3
  101. data/examples/custom_resource_block/spec/default_spec.rb +0 -10
  102. data/examples/directory/recipes/create.rb +0 -18
  103. data/examples/directory/recipes/delete.rb +0 -14
  104. data/examples/directory/spec/create_spec.rb +0 -34
  105. data/examples/directory/spec/delete_spec.rb +0 -26
  106. data/examples/dnf_package/recipes/install.rb +0 -13
  107. data/examples/dnf_package/recipes/purge.rb +0 -13
  108. data/examples/dnf_package/recipes/remove.rb +0 -13
  109. data/examples/dnf_package/recipes/upgrade.rb +0 -13
  110. data/examples/dnf_package/spec/install_spec.rb +0 -28
  111. data/examples/dnf_package/spec/purge_spec.rb +0 -24
  112. data/examples/dnf_package/spec/remove_spec.rb +0 -24
  113. data/examples/dnf_package/spec/upgrade_spec.rb +0 -24
  114. data/examples/do_nothing/recipes/default.rb +0 -3
  115. data/examples/do_nothing/spec/default_spec.rb +0 -15
  116. data/examples/dpkg_package/recipes/install.rb +0 -13
  117. data/examples/dpkg_package/recipes/purge.rb +0 -13
  118. data/examples/dpkg_package/recipes/remove.rb +0 -13
  119. data/examples/dpkg_package/spec/install_spec.rb +0 -26
  120. data/examples/dpkg_package/spec/purge_spec.rb +0 -22
  121. data/examples/dpkg_package/spec/remove_spec.rb +0 -22
  122. data/examples/dsc_resource/recipes/run.rb +0 -20
  123. data/examples/dsc_resource/spec/run_spec.rb +0 -38
  124. data/examples/dsc_script/recipes/run.rb +0 -12
  125. data/examples/dsc_script/spec/run_spec.rb +0 -16
  126. data/examples/env/recipes/create.rb +0 -13
  127. data/examples/env/recipes/delete.rb +0 -13
  128. data/examples/env/recipes/modify.rb +0 -13
  129. data/examples/env/spec/create_spec.rb +0 -26
  130. data/examples/env/spec/delete_spec.rb +0 -22
  131. data/examples/env/spec/modify_spec.rb +0 -22
  132. data/examples/execute/recipes/run.rb +0 -13
  133. data/examples/execute/spec/run_spec.rb +0 -23
  134. data/examples/expect_exception/recipes/compile_error.rb +0 -1
  135. data/examples/expect_exception/recipes/converge_error.rb +0 -5
  136. data/examples/expect_exception/recipes/no_error.rb +0 -1
  137. data/examples/expect_exception/spec/compile_error_spec.rb +0 -10
  138. data/examples/expect_exception/spec/converge_error_spec.rb +0 -10
  139. data/examples/expect_exception/spec/no_error_spec.rb +0 -10
  140. data/examples/file/recipes/create.rb +0 -15
  141. data/examples/file/recipes/create_if_missing.rb +0 -15
  142. data/examples/file/recipes/delete.rb +0 -15
  143. data/examples/file/recipes/touch.rb +0 -15
  144. data/examples/file/spec/create_if_missing_spec.rb +0 -28
  145. data/examples/file/spec/create_spec.rb +0 -32
  146. data/examples/file/spec/delete_spec.rb +0 -19
  147. data/examples/file/spec/touch_spec.rb +0 -19
  148. data/examples/freebsd_package/recipes/install.rb +0 -13
  149. data/examples/freebsd_package/recipes/remove.rb +0 -13
  150. data/examples/freebsd_package/spec/install_spec.rb +0 -26
  151. data/examples/freebsd_package/spec/remove_spec.rb +0 -22
  152. data/examples/gem_package/recipes/install.rb +0 -13
  153. data/examples/gem_package/recipes/purge.rb +0 -13
  154. data/examples/gem_package/recipes/reconfig.rb +0 -13
  155. data/examples/gem_package/recipes/remove.rb +0 -13
  156. data/examples/gem_package/recipes/upgrade.rb +0 -13
  157. data/examples/gem_package/spec/install_spec.rb +0 -23
  158. data/examples/gem_package/spec/purge_spec.rb +0 -19
  159. data/examples/gem_package/spec/reconfig_spec.rb +0 -19
  160. data/examples/gem_package/spec/remove_spec.rb +0 -19
  161. data/examples/gem_package/spec/upgrade_spec.rb +0 -19
  162. data/examples/git/recipes/checkout.rb +0 -13
  163. data/examples/git/recipes/export.rb +0 -13
  164. data/examples/git/recipes/sync.rb +0 -13
  165. data/examples/git/spec/checkout_spec.rb +0 -19
  166. data/examples/git/spec/export_spec.rb +0 -19
  167. data/examples/git/spec/sync_spec.rb +0 -23
  168. data/examples/group/recipes/create.rb +0 -13
  169. data/examples/group/recipes/manage.rb +0 -13
  170. data/examples/group/recipes/modify.rb +0 -13
  171. data/examples/group/recipes/remove.rb +0 -13
  172. data/examples/group/spec/create_spec.rb +0 -23
  173. data/examples/group/spec/manage_spec.rb +0 -19
  174. data/examples/group/spec/modify_spec.rb +0 -19
  175. data/examples/group/spec/remove_spec.rb +0 -18
  176. data/examples/guards/recipes/default.rb +0 -13
  177. data/examples/guards/spec/default_spec.rb +0 -17
  178. data/examples/heavy_provider_light_resource/libraries/resource_service.rb +0 -15
  179. data/examples/heavy_provider_light_resource/providers/service.rb +0 -9
  180. data/examples/heavy_provider_light_resource/recipes/default.rb +0 -3
  181. data/examples/heavy_provider_light_resource/spec/provider_service_spec.rb +0 -8
  182. data/examples/homebrew_package/recipes/install.rb +0 -13
  183. data/examples/homebrew_package/recipes/purge.rb +0 -13
  184. data/examples/homebrew_package/recipes/remove.rb +0 -13
  185. data/examples/homebrew_package/recipes/upgrade.rb +0 -13
  186. data/examples/homebrew_package/spec/install_spec.rb +0 -23
  187. data/examples/homebrew_package/spec/purge_spec.rb +0 -19
  188. data/examples/homebrew_package/spec/remove_spec.rb +0 -19
  189. data/examples/homebrew_package/spec/upgrade_spec.rb +0 -19
  190. data/examples/http_request/recipes/delete.rb +0 -13
  191. data/examples/http_request/recipes/get.rb +0 -13
  192. data/examples/http_request/recipes/head.rb +0 -13
  193. data/examples/http_request/recipes/options.rb +0 -13
  194. data/examples/http_request/recipes/post.rb +0 -13
  195. data/examples/http_request/recipes/put.rb +0 -13
  196. data/examples/http_request/spec/delete_spec.rb +0 -19
  197. data/examples/http_request/spec/get_spec.rb +0 -23
  198. data/examples/http_request/spec/head_spec.rb +0 -19
  199. data/examples/http_request/spec/options_spec.rb +0 -19
  200. data/examples/http_request/spec/post_spec.rb +0 -19
  201. data/examples/http_request/spec/put_spec.rb +0 -19
  202. data/examples/ifconfig/recipes/add.rb +0 -9
  203. data/examples/ifconfig/recipes/delete.rb +0 -8
  204. data/examples/ifconfig/recipes/disable.rb +0 -8
  205. data/examples/ifconfig/recipes/enable.rb +0 -8
  206. data/examples/ifconfig/spec/add_spec.rb +0 -19
  207. data/examples/ifconfig/spec/delete_spec.rb +0 -15
  208. data/examples/ifconfig/spec/disable_spec.rb +0 -15
  209. data/examples/ifconfig/spec/enable_spec.rb +0 -15
  210. data/examples/include_recipe/recipes/default.rb +0 -1
  211. data/examples/include_recipe/recipes/not.rb +0 -0
  212. data/examples/include_recipe/recipes/other.rb +0 -0
  213. data/examples/include_recipe/spec/default_spec.rb +0 -13
  214. data/examples/ips_package/recipes/install.rb +0 -13
  215. data/examples/ips_package/recipes/remove.rb +0 -13
  216. data/examples/ips_package/recipes/upgrade.rb +0 -13
  217. data/examples/ips_package/spec/install_spec.rb +0 -26
  218. data/examples/ips_package/spec/remove_spec.rb +0 -22
  219. data/examples/ips_package/spec/upgrade_spec.rb +0 -22
  220. data/examples/launchd/recipes/create.rb +0 -5
  221. data/examples/launchd/recipes/create_if_missing.rb +0 -3
  222. data/examples/launchd/recipes/delete.rb +0 -3
  223. data/examples/launchd/recipes/disable.rb +0 -3
  224. data/examples/launchd/recipes/enable.rb +0 -3
  225. data/examples/launchd/spec/create_if_missing_spec.rb +0 -10
  226. data/examples/launchd/spec/create_spec.rb +0 -14
  227. data/examples/launchd/spec/delete_spec.rb +0 -10
  228. data/examples/launchd/spec/disable_spec.rb +0 -10
  229. data/examples/launchd/spec/enable_spec.rb +0 -10
  230. data/examples/library_patch/libraries/default.rb +0 -5
  231. data/examples/library_patch/recipes/default.rb +0 -1
  232. data/examples/library_patch/spec/default_spec.rb +0 -14
  233. data/examples/link/recipes/create.rb +0 -13
  234. data/examples/link/recipes/delete.rb +0 -13
  235. data/examples/link/recipes/link_to.rb +0 -3
  236. data/examples/link/spec/create_spec.rb +0 -23
  237. data/examples/link/spec/delete_spec.rb +0 -19
  238. data/examples/link/spec/link_to_spec.rb +0 -11
  239. data/examples/log/recipes/write.rb +0 -13
  240. data/examples/log/spec/write_spec.rb +0 -24
  241. data/examples/macports_package/recipes/install.rb +0 -13
  242. data/examples/macports_package/recipes/purge.rb +0 -13
  243. data/examples/macports_package/recipes/remove.rb +0 -13
  244. data/examples/macports_package/recipes/upgrade.rb +0 -13
  245. data/examples/macports_package/spec/install_spec.rb +0 -23
  246. data/examples/macports_package/spec/purge_spec.rb +0 -19
  247. data/examples/macports_package/spec/remove_spec.rb +0 -19
  248. data/examples/macports_package/spec/upgrade_spec.rb +0 -19
  249. data/examples/mdadm/recipes/assemble.rb +0 -13
  250. data/examples/mdadm/recipes/create.rb +0 -13
  251. data/examples/mdadm/recipes/stop.rb +0 -13
  252. data/examples/mdadm/spec/assemble_spec.rb +0 -19
  253. data/examples/mdadm/spec/create_spec.rb +0 -23
  254. data/examples/mdadm/spec/stop_spec.rb +0 -19
  255. data/examples/mount/recipes/disable.rb +0 -8
  256. data/examples/mount/recipes/enable.rb +0 -8
  257. data/examples/mount/recipes/mount.rb +0 -9
  258. data/examples/mount/recipes/remount.rb +0 -8
  259. data/examples/mount/recipes/umount.rb +0 -8
  260. data/examples/mount/spec/disable_spec.rb +0 -15
  261. data/examples/mount/spec/enable_spec.rb +0 -15
  262. data/examples/mount/spec/mount_spec.rb +0 -19
  263. data/examples/mount/spec/remount_spec.rb +0 -15
  264. data/examples/mount/spec/umount_spec.rb +0 -15
  265. data/examples/msu_package/recipes/install.rb +0 -13
  266. data/examples/msu_package/recipes/remove.rb +0 -13
  267. data/examples/msu_package/spec/install_spec.rb +0 -28
  268. data/examples/msu_package/spec/remove_spec.rb +0 -24
  269. data/examples/multiple_actions/recipes/default.rb +0 -3
  270. data/examples/multiple_actions/recipes/reversed.rb +0 -9
  271. data/examples/multiple_actions/recipes/sequential.rb +0 -9
  272. data/examples/multiple_actions/spec/default_spec.rb +0 -14
  273. data/examples/multiple_actions/spec/reversed_spec.rb +0 -17
  274. data/examples/multiple_actions/spec/sequential_spec.rb +0 -17
  275. data/examples/multiple_run_action/recipes/default.rb +0 -5
  276. data/examples/multiple_run_action/spec/default_spec.rb +0 -18
  277. data/examples/nothing_matcher/recipes/default.rb +0 -13
  278. data/examples/nothing_matcher/spec/default_spec.rb +0 -20
  279. data/examples/notifications/recipes/before.rb +0 -7
  280. data/examples/notifications/recipes/chained.rb +0 -12
  281. data/examples/notifications/recipes/default.rb +0 -7
  282. data/examples/notifications/recipes/delayed.rb +0 -7
  283. data/examples/notifications/recipes/immediately.rb +0 -7
  284. data/examples/notifications/spec/before_spec.rb +0 -16
  285. data/examples/notifications/spec/chained_spec.rb +0 -21
  286. data/examples/notifications/spec/default_spec.rb +0 -16
  287. data/examples/notifications/spec/delayed_spec.rb +0 -16
  288. data/examples/notifications/spec/immediately_spec.rb +0 -16
  289. data/examples/ohai/recipes/reload.rb +0 -13
  290. data/examples/ohai/spec/reload_spec.rb +0 -23
  291. data/examples/openbsd_package/recipes/install.rb +0 -13
  292. data/examples/openbsd_package/recipes/purge.rb +0 -13
  293. data/examples/openbsd_package/recipes/remove.rb +0 -13
  294. data/examples/openbsd_package/recipes/upgrade.rb +0 -13
  295. data/examples/openbsd_package/spec/install_spec.rb +0 -23
  296. data/examples/openbsd_package/spec/purge_spec.rb +0 -19
  297. data/examples/openbsd_package/spec/remove_spec.rb +0 -19
  298. data/examples/openbsd_package/spec/upgrade_spec.rb +0 -19
  299. data/examples/osx_profile/recipes/install.rb +0 -8
  300. data/examples/osx_profile/recipes/remove.rb +0 -8
  301. data/examples/osx_profile/spec/install_spec.rb +0 -15
  302. data/examples/osx_profile/spec/remove_spec.rb +0 -13
  303. data/examples/package/recipes/install.rb +0 -17
  304. data/examples/package/recipes/lock.rb +0 -17
  305. data/examples/package/recipes/purge.rb +0 -17
  306. data/examples/package/recipes/reconfig.rb +0 -17
  307. data/examples/package/recipes/remove.rb +0 -17
  308. data/examples/package/recipes/unlock.rb +0 -17
  309. data/examples/package/recipes/upgrade.rb +0 -17
  310. data/examples/package/spec/install_spec.rb +0 -27
  311. data/examples/package/spec/lock_spec.rb +0 -23
  312. data/examples/package/spec/purge_spec.rb +0 -23
  313. data/examples/package/spec/reconfig_spec.rb +0 -23
  314. data/examples/package/spec/remove_spec.rb +0 -23
  315. data/examples/package/spec/unlock_spec.rb +0 -23
  316. data/examples/package/spec/upgrade_spec.rb +0 -23
  317. data/examples/pacman_package/recipes/install.rb +0 -13
  318. data/examples/pacman_package/recipes/purge.rb +0 -13
  319. data/examples/pacman_package/recipes/remove.rb +0 -13
  320. data/examples/pacman_package/recipes/upgrade.rb +0 -13
  321. data/examples/pacman_package/spec/install_spec.rb +0 -26
  322. data/examples/pacman_package/spec/purge_spec.rb +0 -22
  323. data/examples/pacman_package/spec/remove_spec.rb +0 -22
  324. data/examples/pacman_package/spec/upgrade_spec.rb +0 -22
  325. data/examples/paludis_package/recipes/install.rb +0 -13
  326. data/examples/paludis_package/recipes/purge.rb +0 -13
  327. data/examples/paludis_package/recipes/remove.rb +0 -13
  328. data/examples/paludis_package/recipes/upgrade.rb +0 -13
  329. data/examples/paludis_package/spec/install_spec.rb +0 -23
  330. data/examples/paludis_package/spec/purge_spec.rb +0 -19
  331. data/examples/paludis_package/spec/remove_spec.rb +0 -19
  332. data/examples/paludis_package/spec/upgrade_spec.rb +0 -19
  333. data/examples/portage_package/recipes/install.rb +0 -13
  334. data/examples/portage_package/recipes/purge.rb +0 -13
  335. data/examples/portage_package/recipes/remove.rb +0 -13
  336. data/examples/portage_package/recipes/upgrade.rb +0 -13
  337. data/examples/portage_package/spec/install_spec.rb +0 -26
  338. data/examples/portage_package/spec/purge_spec.rb +0 -22
  339. data/examples/portage_package/spec/remove_spec.rb +0 -22
  340. data/examples/portage_package/spec/upgrade_spec.rb +0 -22
  341. data/examples/powershell_script/recipes/run.rb +0 -9
  342. data/examples/powershell_script/spec/run_spec.rb +0 -22
  343. data/examples/reboot/recipes/cancel.rb +0 -3
  344. data/examples/reboot/recipes/now.rb +0 -3
  345. data/examples/reboot/recipes/request.rb +0 -3
  346. data/examples/reboot/spec/cancel_spec.rb +0 -9
  347. data/examples/reboot/spec/now_spec.rb +0 -9
  348. data/examples/reboot/spec/request_spec.rb +0 -9
  349. data/examples/recipe_block/metadata.rb +0 -1
  350. data/examples/recipe_block/spec/recipe_block_spec.rb +0 -34
  351. data/examples/recipe_block/templates/apache2.conf.erb +0 -1
  352. data/examples/registry_key/recipes/create.rb +0 -13
  353. data/examples/registry_key/recipes/create_if_missing.rb +0 -13
  354. data/examples/registry_key/recipes/delete.rb +0 -13
  355. data/examples/registry_key/recipes/delete_key.rb +0 -13
  356. data/examples/registry_key/spec/create_if_missing_spec.rb +0 -22
  357. data/examples/registry_key/spec/create_spec.rb +0 -26
  358. data/examples/registry_key/spec/delete_key_spec.rb +0 -22
  359. data/examples/registry_key/spec/delete_spec.rb +0 -22
  360. data/examples/remote_directory/recipes/create.rb +0 -13
  361. data/examples/remote_directory/recipes/create_if_missing.rb +0 -13
  362. data/examples/remote_directory/recipes/delete.rb +0 -13
  363. data/examples/remote_directory/spec/create_if_missing_spec.rb +0 -19
  364. data/examples/remote_directory/spec/create_spec.rb +0 -23
  365. data/examples/remote_directory/spec/delete_spec.rb +0 -19
  366. data/examples/remote_file/recipes/create.rb +0 -18
  367. data/examples/remote_file/recipes/create_if_missing.rb +0 -16
  368. data/examples/remote_file/recipes/delete.rb +0 -16
  369. data/examples/remote_file/recipes/touch.rb +0 -16
  370. data/examples/remote_file/spec/create_if_missing_spec.rb +0 -19
  371. data/examples/remote_file/spec/create_spec.rb +0 -23
  372. data/examples/remote_file/spec/delete_spec.rb +0 -19
  373. data/examples/remote_file/spec/touch_spec.rb +0 -19
  374. data/examples/render_file/files/default/cookbook_file +0 -1
  375. data/examples/render_file/recipes/default.rb +0 -15
  376. data/examples/render_file/recipes/template_helpers.rb +0 -9
  377. data/examples/render_file/spec/default_spec.rb +0 -166
  378. data/examples/render_file/spec/template_helpers_spec.rb +0 -10
  379. data/examples/render_file/templates/default/_partial.erb +0 -1
  380. data/examples/render_file/templates/default/partial.erb +0 -1
  381. data/examples/render_file/templates/default/template.erb +0 -1
  382. data/examples/render_file/templates/default/template_with_helper.erb +0 -1
  383. data/examples/roles/recipes/another.rb +0 -3
  384. data/examples/roles/recipes/default.rb +0 -1
  385. data/examples/roles/roles/role.rb +0 -9
  386. data/examples/roles/spec/default_spec.rb +0 -21
  387. data/examples/route/recipes/add.rb +0 -13
  388. data/examples/route/recipes/delete.rb +0 -13
  389. data/examples/route/spec/add_spec.rb +0 -23
  390. data/examples/route/spec/delete_spec.rb +0 -19
  391. data/examples/rpm_package/recipes/install.rb +0 -13
  392. data/examples/rpm_package/recipes/remove.rb +0 -13
  393. data/examples/rpm_package/recipes/upgrade.rb +0 -13
  394. data/examples/rpm_package/spec/install_spec.rb +0 -26
  395. data/examples/rpm_package/spec/remove_spec.rb +0 -22
  396. data/examples/rpm_package/spec/upgrade_spec.rb +0 -22
  397. data/examples/ruby_block/recipes/create.rb +0 -8
  398. data/examples/ruby_block/recipes/run.rb +0 -9
  399. data/examples/ruby_block/spec/create_spec.rb +0 -13
  400. data/examples/ruby_block/spec/run_spec.rb +0 -18
  401. data/examples/runner/recipes/default.rb +0 -1
  402. data/examples/runner/spec/default_spec.rb +0 -11
  403. data/examples/script/recipes/run_bash.rb +0 -9
  404. data/examples/script/recipes/run_csh.rb +0 -9
  405. data/examples/script/recipes/run_ksh.rb +0 -9
  406. data/examples/script/recipes/run_perl.rb +0 -9
  407. data/examples/script/recipes/run_python.rb +0 -9
  408. data/examples/script/recipes/run_ruby.rb +0 -9
  409. data/examples/script/recipes/run_script.rb +0 -9
  410. data/examples/script/spec/run_bash_spec.rb +0 -19
  411. data/examples/script/spec/run_csh_spec.rb +0 -19
  412. data/examples/script/spec/run_ksh_spec.rb +0 -19
  413. data/examples/script/spec/run_perl_spec.rb +0 -19
  414. data/examples/script/spec/run_python_spec.rb +0 -19
  415. data/examples/script/spec/run_ruby_spec.rb +0 -19
  416. data/examples/script/spec/run_script_spec.rb +0 -19
  417. data/examples/server/recipes/client.rb +0 -6
  418. data/examples/server/recipes/data_bag.rb +0 -7
  419. data/examples/server/recipes/environment.rb +0 -6
  420. data/examples/server/recipes/node.rb +0 -6
  421. data/examples/server/recipes/render_with_cached.rb +0 -3
  422. data/examples/server/recipes/role.rb +0 -6
  423. data/examples/server/recipes/search.rb +0 -5
  424. data/examples/server/spec/client_spec.rb +0 -18
  425. data/examples/server/spec/data_bag_spec.rb +0 -25
  426. data/examples/server/spec/environment_spec.rb +0 -18
  427. data/examples/server/spec/exotic_port_spec.rb +0 -30
  428. data/examples/server/spec/node_spec.rb +0 -49
  429. data/examples/server/spec/render_with_cached_spec.rb +0 -15
  430. data/examples/server/spec/role_spec.rb +0 -18
  431. data/examples/server/spec/search_spec.rb +0 -61
  432. data/examples/service/recipes/disable.rb +0 -13
  433. data/examples/service/recipes/enable.rb +0 -13
  434. data/examples/service/recipes/reload.rb +0 -13
  435. data/examples/service/recipes/restart.rb +0 -13
  436. data/examples/service/recipes/start.rb +0 -13
  437. data/examples/service/recipes/stop.rb +0 -13
  438. data/examples/service/spec/disable_spec.rb +0 -19
  439. data/examples/service/spec/enable_spec.rb +0 -19
  440. data/examples/service/spec/reload_spec.rb +0 -19
  441. data/examples/service/spec/restart_spec.rb +0 -19
  442. data/examples/service/spec/start_spec.rb +0 -19
  443. data/examples/service/spec/stop_spec.rb +0 -19
  444. data/examples/smartos_package/recipes/install.rb +0 -13
  445. data/examples/smartos_package/recipes/remove.rb +0 -13
  446. data/examples/smartos_package/recipes/upgrade.rb +0 -13
  447. data/examples/smartos_package/spec/install_spec.rb +0 -26
  448. data/examples/smartos_package/spec/remove_spec.rb +0 -22
  449. data/examples/smartos_package/spec/upgrade_spec.rb +0 -22
  450. data/examples/solaris_package/recipes/install.rb +0 -13
  451. data/examples/solaris_package/recipes/remove.rb +0 -13
  452. data/examples/solaris_package/recipes/upgrade.rb +0 -13
  453. data/examples/solaris_package/spec/install_spec.rb +0 -26
  454. data/examples/solaris_package/spec/remove_spec.rb +0 -22
  455. data/examples/solaris_package/spec/upgrade_spec.rb +0 -22
  456. data/examples/spec_attributes/attributes/default.rb +0 -1
  457. data/examples/spec_attributes/recipes/default.rb +0 -5
  458. data/examples/spec_attributes/spec/default_spec.rb +0 -63
  459. data/examples/spec_platform/recipes/default.rb +0 -3
  460. data/examples/spec_platform/spec/default_spec.rb +0 -36
  461. data/examples/spec_step_into/recipes/default.rb +0 -3
  462. data/examples/spec_step_into/resources/one.rb +0 -3
  463. data/examples/spec_step_into/resources/two.rb +0 -3
  464. data/examples/spec_step_into/spec/default_spec.rb +0 -50
  465. data/examples/state_attrs/providers/lwrp.rb +0 -2
  466. data/examples/state_attrs/recipes/default.rb +0 -3
  467. data/examples/state_attrs/resources/lwrp.rb +0 -6
  468. data/examples/state_attrs/spec/default_spec.rb +0 -12
  469. data/examples/step_into/providers/lwrp.rb +0 -3
  470. data/examples/step_into/providers/provides.rb +0 -3
  471. data/examples/step_into/recipes/default.rb +0 -3
  472. data/examples/step_into/resources/lwrp.rb +0 -4
  473. data/examples/step_into/resources/provides.rb +0 -6
  474. data/examples/step_into/spec/default_spec.rb +0 -30
  475. data/examples/stub_command/recipes/default.rb +0 -5
  476. data/examples/stub_command/recipes/other_recipe.rb +0 -3
  477. data/examples/stub_command/spec/default_spec.rb +0 -28
  478. data/examples/stub_data_bag/recipes/default.rb +0 -5
  479. data/examples/stub_data_bag/spec/default_spec.rb +0 -27
  480. data/examples/stub_data_bag_item/recipes/default.rb +0 -5
  481. data/examples/stub_data_bag_item/spec/default_spec.rb +0 -27
  482. data/examples/stub_node/recipes/default.rb +0 -0
  483. data/examples/stub_node/spec/default_spec.rb +0 -17
  484. data/examples/stub_search/recipes/block.rb +0 -3
  485. data/examples/stub_search/recipes/default.rb +0 -2
  486. data/examples/stub_search/spec/block_spec.rb +0 -27
  487. data/examples/stub_search/spec/default_spec.rb +0 -27
  488. data/examples/stubs_for/resources/default.rb +0 -27
  489. data/examples/stubs_for/resources/old.rb +0 -26
  490. data/examples/stubs_for/spec/default_spec.rb +0 -263
  491. data/examples/subscribes/recipes/before.rb +0 -5
  492. data/examples/subscribes/recipes/chained.rb +0 -10
  493. data/examples/subscribes/recipes/default.rb +0 -5
  494. data/examples/subscribes/recipes/delayed.rb +0 -5
  495. data/examples/subscribes/recipes/immediately.rb +0 -5
  496. data/examples/subscribes/spec/before_spec.rb +0 -16
  497. data/examples/subscribes/spec/chained_spec.rb +0 -21
  498. data/examples/subscribes/spec/default_spec.rb +0 -16
  499. data/examples/subscribes/spec/delayed_spec.rb +0 -16
  500. data/examples/subscribes/spec/immediately_spec.rb +0 -16
  501. data/examples/subversion/recipes/checkout.rb +0 -13
  502. data/examples/subversion/recipes/export.rb +0 -13
  503. data/examples/subversion/recipes/force_export.rb +0 -13
  504. data/examples/subversion/recipes/sync.rb +0 -13
  505. data/examples/subversion/spec/checkout_spec.rb +0 -19
  506. data/examples/subversion/spec/export_spec.rb +0 -19
  507. data/examples/subversion/spec/force_export_spec.rb +0 -19
  508. data/examples/subversion/spec/sync_spec.rb +0 -23
  509. data/examples/systemd_unit/recipes/create.rb +0 -3
  510. data/examples/systemd_unit/recipes/delete.rb +0 -3
  511. data/examples/systemd_unit/recipes/disable.rb +0 -3
  512. data/examples/systemd_unit/recipes/enable.rb +0 -3
  513. data/examples/systemd_unit/recipes/mask.rb +0 -3
  514. data/examples/systemd_unit/recipes/reload_or_restart.rb +0 -3
  515. data/examples/systemd_unit/recipes/reload_or_try_restart.rb +0 -3
  516. data/examples/systemd_unit/recipes/restart.rb +0 -3
  517. data/examples/systemd_unit/recipes/start.rb +0 -3
  518. data/examples/systemd_unit/recipes/stop.rb +0 -3
  519. data/examples/systemd_unit/recipes/try_restart.rb +0 -3
  520. data/examples/systemd_unit/recipes/unmask.rb +0 -3
  521. data/examples/systemd_unit/spec/create_spec.rb +0 -10
  522. data/examples/systemd_unit/spec/delete_spec.rb +0 -10
  523. data/examples/systemd_unit/spec/disable_spec.rb +0 -10
  524. data/examples/systemd_unit/spec/enable_spec.rb +0 -10
  525. data/examples/systemd_unit/spec/mask_spec.rb +0 -10
  526. data/examples/systemd_unit/spec/reload_or_restart_spec.rb +0 -10
  527. data/examples/systemd_unit/spec/reload_or_try_restart_spec.rb +0 -10
  528. data/examples/systemd_unit/spec/restart_spec.rb +0 -10
  529. data/examples/systemd_unit/spec/start_spec.rb +0 -10
  530. data/examples/systemd_unit/spec/stop_spec.rb +0 -10
  531. data/examples/systemd_unit/spec/try_restart_spec.rb +0 -10
  532. data/examples/systemd_unit/spec/unmask_spec.rb +0 -10
  533. data/examples/template/recipes/create.rb +0 -15
  534. data/examples/template/recipes/create_if_missing.rb +0 -15
  535. data/examples/template/recipes/delete.rb +0 -15
  536. data/examples/template/recipes/touch.rb +0 -15
  537. data/examples/template/spec/create_if_missing_spec.rb +0 -28
  538. data/examples/template/spec/create_spec.rb +0 -32
  539. data/examples/template/spec/delete_spec.rb +0 -19
  540. data/examples/template/spec/touch_spec.rb +0 -19
  541. data/examples/use_inline_resources/providers/lwrp.rb +0 -7
  542. data/examples/use_inline_resources/recipes/default.rb +0 -1
  543. data/examples/use_inline_resources/resources/lwrp.rb +0 -4
  544. data/examples/use_inline_resources/spec/default_spec.rb +0 -18
  545. data/examples/user/recipes/create.rb +0 -13
  546. data/examples/user/recipes/lock.rb +0 -13
  547. data/examples/user/recipes/manage.rb +0 -13
  548. data/examples/user/recipes/modify.rb +0 -13
  549. data/examples/user/recipes/remove.rb +0 -13
  550. data/examples/user/recipes/unlock.rb +0 -13
  551. data/examples/user/spec/create_spec.rb +0 -26
  552. data/examples/user/spec/lock_spec.rb +0 -22
  553. data/examples/user/spec/manage_spec.rb +0 -22
  554. data/examples/user/spec/modify_spec.rb +0 -22
  555. data/examples/user/spec/remove_spec.rb +0 -22
  556. data/examples/user/spec/unlock_spec.rb +0 -22
  557. data/examples/windows_package/recipes/install.rb +0 -13
  558. data/examples/windows_package/recipes/remove.rb +0 -13
  559. data/examples/windows_package/spec/install_spec.rb +0 -22
  560. data/examples/windows_package/spec/remove_spec.rb +0 -22
  561. data/examples/windows_service/recipes/configure_startup.rb +0 -13
  562. data/examples/windows_service/recipes/disable.rb +0 -13
  563. data/examples/windows_service/recipes/enable.rb +0 -13
  564. data/examples/windows_service/recipes/reload.rb +0 -13
  565. data/examples/windows_service/recipes/restart.rb +0 -13
  566. data/examples/windows_service/recipes/start.rb +0 -13
  567. data/examples/windows_service/recipes/stop.rb +0 -13
  568. data/examples/windows_service/spec/configure_startup_spec.rb +0 -22
  569. data/examples/windows_service/spec/disable_spec.rb +0 -22
  570. data/examples/windows_service/spec/enable_spec.rb +0 -22
  571. data/examples/windows_service/spec/reload_spec.rb +0 -22
  572. data/examples/windows_service/spec/restart_spec.rb +0 -22
  573. data/examples/windows_service/spec/start_spec.rb +0 -22
  574. data/examples/windows_service/spec/stop_spec.rb +0 -22
  575. data/examples/yum_package/recipes/install.rb +0 -13
  576. data/examples/yum_package/recipes/lock.rb +0 -13
  577. data/examples/yum_package/recipes/purge.rb +0 -13
  578. data/examples/yum_package/recipes/remove.rb +0 -13
  579. data/examples/yum_package/recipes/unlock.rb +0 -13
  580. data/examples/yum_package/recipes/upgrade.rb +0 -13
  581. data/examples/yum_package/spec/install_spec.rb +0 -26
  582. data/examples/yum_package/spec/lock_spec.rb +0 -22
  583. data/examples/yum_package/spec/purge_spec.rb +0 -22
  584. data/examples/yum_package/spec/remove_spec.rb +0 -22
  585. data/examples/yum_package/spec/unlock_spec.rb +0 -22
  586. data/examples/yum_package/spec/upgrade_spec.rb +0 -22
  587. data/examples/yum_repository/recipes/add.rb +0 -8
  588. data/examples/yum_repository/recipes/create.rb +0 -8
  589. data/examples/yum_repository/recipes/delete.rb +0 -3
  590. data/examples/yum_repository/recipes/makecache.rb +0 -3
  591. data/examples/yum_repository/recipes/remove.rb +0 -7
  592. data/examples/yum_repository/spec/add_spec.rb +0 -12
  593. data/examples/yum_repository/spec/create_spec.rb +0 -17
  594. data/examples/yum_repository/spec/delete_spec.rb +0 -12
  595. data/examples/yum_repository/spec/makecache_spec.rb +0 -12
  596. data/examples/yum_repository/spec/remove_spec.rb +0 -12
  597. data/examples/zypper_package/recipes/install.rb +0 -13
  598. data/examples/zypper_package/recipes/lock.rb +0 -13
  599. data/examples/zypper_package/recipes/purge.rb +0 -13
  600. data/examples/zypper_package/recipes/remove.rb +0 -13
  601. data/examples/zypper_package/recipes/unlock.rb +0 -13
  602. data/examples/zypper_package/recipes/upgrade.rb +0 -13
  603. data/examples/zypper_package/spec/install_spec.rb +0 -23
  604. data/examples/zypper_package/spec/lock_spec.rb +0 -19
  605. data/examples/zypper_package/spec/purge_spec.rb +0 -19
  606. data/examples/zypper_package/spec/remove_spec.rb +0 -19
  607. data/examples/zypper_package/spec/unlock_spec.rb +0 -19
  608. data/examples/zypper_package/spec/upgrade_spec.rb +0 -19
  609. data/spec/spec_helper.rb +0 -13
  610. data/spec/support/hash.rb +0 -35
  611. data/spec/unit/cacher_spec.rb +0 -70
  612. data/spec/unit/coverage/filters_spec.rb +0 -60
  613. data/spec/unit/deprecations_spec.rb +0 -53
  614. data/spec/unit/errors_spec.rb +0 -57
  615. data/spec/unit/expect_exception_spec.rb +0 -32
  616. data/spec/unit/macros_spec.rb +0 -119
  617. data/spec/unit/matchers/do_nothing_matcher.rb +0 -5
  618. data/spec/unit/matchers/include_recipe_matcher_spec.rb +0 -38
  619. data/spec/unit/matchers/link_to_matcher_spec.rb +0 -55
  620. data/spec/unit/matchers/notifications_matcher_spec.rb +0 -40
  621. data/spec/unit/matchers/render_file_matcher_spec.rb +0 -68
  622. data/spec/unit/matchers/resource_matcher_spec.rb +0 -5
  623. data/spec/unit/matchers/state_attrs_matcher_spec.rb +0 -68
  624. data/spec/unit/matchers/subscribes_matcher_spec.rb +0 -65
  625. data/spec/unit/renderer_spec.rb +0 -69
  626. data/spec/unit/server_runner_spec.rb +0 -28
  627. data/spec/unit/solo_runner_spec.rb +0 -171
  628. data/spec/unit/stubs/command_registry_spec.rb +0 -27
  629. data/spec/unit/stubs/command_stub_spec.rb +0 -61
  630. data/spec/unit/stubs/data_bag_item_registry_spec.rb +0 -39
  631. data/spec/unit/stubs/data_bag_item_stub_spec.rb +0 -36
  632. data/spec/unit/stubs/data_bag_registry_spec.rb +0 -39
  633. data/spec/unit/stubs/data_bag_stub_spec.rb +0 -35
  634. data/spec/unit/stubs/registry_spec.rb +0 -29
  635. data/spec/unit/stubs/search_registry_spec.rb +0 -39
  636. data/spec/unit/stubs/search_stub_spec.rb +0 -36
  637. data/spec/unit/stubs/stub_spec.rb +0 -64
data/.gitignore DELETED
@@ -1,16 +0,0 @@
1
- .idea
2
- .yardoc
3
- *.gem
4
- *.html
5
- *.rbc
6
- *.swp
7
- ^coverage
8
- doc
9
- tmp
10
- Gemfile.lock
11
- gemfiles/*.lock
12
- .bundle
13
- bin
14
- binstubs
15
- vendor
16
- .rspec
@@ -1,48 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
-
5
- before_install:
6
- - gem install bundler
7
- - bundle --version
8
- - gem update --system
9
- - gem --version
10
-
11
- branches:
12
- only:
13
- - master
14
-
15
- bundler_args: --jobs 7 --retry 3
16
-
17
- matrix:
18
- include:
19
- - env: "GEMFILE_MOD=\"gem 'chef', '= 14.3.37'\""
20
- rvm: 2.5.1
21
- - env: "GEMFILE_MOD=\"gem 'chef', '= 14.2.0'\""
22
- rvm: 2.5.1
23
- - env: "GEMFILE_MOD=\"gem 'chef', '= 14.1.12'\""
24
- rvm: 2.5.1
25
- - env: "GEMFILE_MOD=\"gem 'chef', '= 14.0.202'\""
26
- rvm: 2.5.1
27
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.10.0'\""
28
- rvm: 2.4.4
29
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.9.4'\""
30
- rvm: 2.4.4
31
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.8.5'\""
32
- rvm: 2.4.3
33
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.7.16'\""
34
- rvm: 2.4.3
35
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.6.4'\""
36
- rvm: 2.4.2
37
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.5.3'\""
38
- rvm: 2.4.2
39
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.4.24'\""
40
- rvm: 2.4.2
41
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.3.42'\""
42
- rvm: 2.4.2
43
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.2.20'\""
44
- rvm: 2.4.2
45
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.1.31'\""
46
- rvm: 2.4.2
47
- - env: "GEMFILE_MOD=\"gem 'chef', '= 13.0.118'\""
48
- rvm: 2.4.2
@@ -1,819 +0,0 @@
1
- # CHANGELOG for ChefSpec
2
-
3
- ## 7.3.2 (September 14, 2018)
4
-
5
- - Improve runner construction code
6
- - Make options to receive_shell_out work a bit better.
7
-
8
- ## 7.3.1 (September 1, 2018)
9
-
10
- - Add additional hooks for customizing the runner creation process.
11
-
12
- ## 7.3.0 (August 30, 2018)
13
-
14
- - Major syntax overhaul and update. Check out the [README](/README.md) for examples of the updated syntax. The older syntax is still present and will be supported at least until ChefSpec 8.0, but documentation has been moved to [README_old](/README_old.md).
15
-
16
- ## 7.2.1 (May, 8, 2018)
17
-
18
- - Updated an example and test for that example
19
-
20
- ## 7.2.0 (April, 10, 2018)
21
-
22
- - The fauxhai dependency is no longer constrained. This removes the need to release a new version of Chefspec each time a major release of Fauxhai is released. Previously Fauxhai was constraine to < 6\. The current release is 6.1.0, which includes significant new platform data and dumps that are updated for Chef 14.
23
-
24
- ## 7.1.2 (March, 6, 2018)
25
-
26
- This release deprecated the spec coverage feature, which will be removed in a future release. In general this feature leads to users writing unnecessary and generally useless specs in an attempt to reach 100% spec coverage. ChefSpec is useful for testing the parts of your cookbook that include logic, but if a particular resource has no logic behind it, then there's little value in testing. We shouldn't provide a mechanism that encourages writing unnecessary specs that give a false assurance test coverage.
27
-
28
- ## 7.1.1 (November 28, 2017)
29
-
30
- - Better support for matching action :nothing in resources
31
-
32
- ## 7.1.0 (May 9, 2017)
33
-
34
- - Resource matchers are now generated automatically. What does this mean for you? A lot:
35
-
36
- 1. You won't have to worry about older releases of ChefSpec not knowing about new resources in chef-client.
37
- 2. You won't have to define the matchers in your cookbook code, which also means you won't have issues if a community cookbook lacks matchers
38
-
39
- - Removed the usage of Cucumber for testing
40
-
41
- - Removed all test deps from the Gemspec
42
-
43
- - Added a warning about stubbing core Ruby methods and the issues that can cause
44
-
45
- ## 7.0.0 (April 18, 2017)
46
-
47
- - Increased the chef gem dependency from 12.6+ to 12.14+. Since ChefSpec is consumed within ChefDK this actually has a minor impact on end users who generally consume Chefspec via ChefDK, which will bundle both compatible chef and chefspec releases.
48
- - Fixed incompatibilities with Chef 13.
49
- - Loosened the Fauxhai dependency to allow for the upcoming Fauxhai 5.0 release.
50
- - Removed easy_install_package testing and examples as easy_install_package was removed in Chef 13\. The actual matcher is still present for users with existing specs against Chef 12 cookbooks.
51
- - Added additional testing and an example for LWRPs with use_inline_resources defined.
52
- - Added testing against Chef 13 and Ruby 2.4.
53
- - Removed code that supported Chef < 12.5.
54
-
55
- ## 6.2.0 (March 27, 2017)
56
-
57
- - Correctly handle the block form of search() when using stubs
58
- - Add support for alternative reporting output from Coverage.report!
59
-
60
- ## 6.1.0 (March 9, 2017)
61
-
62
- - Loosen the Fauxhai dependency to allow Fauxhai 4.0 This deprecates a large number of Ohai mocks for end of life platforms. See <https://github.com/chefspec/fauxhai/blob/master/PLATFORMS.md> for the current list of platforms supported by Fauxhai
63
- - SoloRunner defaults to use_policyfile == false now
64
-
65
- ## 6.0.1 (February 24, 2017)
66
-
67
- - Add the ability to set the Chef Zero port range used by the ServerRunner
68
-
69
- ## 6.0.0 (February 22, 2017)
70
-
71
- BREAKING CHANGES
72
-
73
- ChefSpec now requires Ruby 2.2 or later.
74
-
75
- IMPROVEMENTS
76
-
77
- - Improve ServerRunner speed and reduce process hangs by using a single stand-alone chef-zero server.
78
- - Add configuration value to dictate whether cookbooks are re-uploaded before every test context.
79
- - Added matchers for dnf_package, msu_package, and cab_package
80
-
81
- ## 5.4.0 (February 9, 2017)
82
-
83
- IMPROVEMENTS
84
-
85
- - Support for in-memory or on-disk ChefZero Servers. See README for usage details.
86
-
87
- UPDATES
88
-
89
- - While Chef 12.0 - 12.5 are still supported, they are no longer being tested.
90
-
91
- ## 5.3.0 (October 29, 2016)
92
-
93
- IMPROVEMENTS
94
-
95
- - Added all missing matchers for built-in chef-client resources
96
-
97
- - osx_profile
98
- - zypper_package
99
- - systemd_unit
100
- - openbsd_package
101
- - launchd
102
- - homebrew_package
103
- - bff_package
104
-
105
- BUG FIXES
106
-
107
- - Fixed readme examples to properly specify the platform / platform version and to use a cache dir that will work on Windows
108
-
109
- ## 5.2.0 (September 21, 2016)
110
-
111
- IMPROVEMENTS
112
-
113
- - Added platform and versions to all examples to avoid deprecation warnings from Fauxhai
114
- - Allow modifications to node object before converge
115
-
116
- BUG FIXES
117
-
118
- - Fix makecache matcher for yum_repository
119
-
120
- ## 5.1.1 (September 14, 2016)
121
-
122
- BUG FIXES
123
-
124
- - Add missing matchers for yum_repository
125
-
126
- ## 5.1.0 (September 14, 2016)
127
-
128
- IMPROVEMENTS
129
-
130
- - Add dsc_script matcher
131
- - Add yum_repository matcher
132
- - Resolve cookstyle warnings in example recipes and specs
133
- - Mock out platforms in the example specs so they're easier to adopt
134
- - Switch all example specs to SoloRunner as this is the preferred runner for Chef Server / Chef Zero users
135
-
136
- BUG FIXES
137
-
138
- - Fixes apt_update and apt_repository matchers to work
139
-
140
- ## 5.0.0 (August 24, 2016)
141
-
142
- IMPROVEMENTS
143
-
144
- - Require a minimum of Chef 12.0
145
- - Add custom templating to Coverage Reporting. See readme for details
146
- - Add matcher for apt_repository resource
147
- - Add matcher for apt_update resource
148
- - Add support for the :before notification
149
- - Allow stubbing encrypted databags loaded with data_bag_item
150
- - Add testing against Chef 12.8 - 12.3
151
-
152
- BUG FIXES
153
-
154
- - Update docs/examples to use node.normal instead of node.set, which has been deprecated
155
- - Update user spec examples to specify the platform
156
- - Update docs to clarify the Ruby 2.1 requirement
157
-
158
- ## 4.7.0 (May 13, 2016)
159
-
160
- IMPROVEMENTS
161
-
162
- - Support Chef Solo actually being local mode (per Chef RFC 31)
163
-
164
- ## 4.6.1 (March 29, 2016)
165
-
166
- BUG FIXES
167
-
168
- - Use the same Chef :file_cache_path in every ChefSpec converge to prevent large numbers of LWRP deprecation warnings
169
- - Require Fauxhai ~3.2 to prevent ChefSpec spec failures
170
- - Require Rake < 11.0 to prevent failures
171
-
172
- ## 4.6.0 (March 7, 2016)
173
-
174
- IMPROVEMENTS
175
-
176
- - Add support for adding `berkshelf_options` to the RSpec config
177
- - Add `chocolately_package` matchers
178
- - Support `do..end` style syntax in block expectations
179
- - Output a diff when multi-line resource parameters are unmatched
180
-
181
- BUG FIXES
182
-
183
- - Update tests to include better descriptions and feature names
184
- - Add support for Policyfile workflow
185
-
186
- ## 4.5.0 (December 4, 2015)
187
-
188
- IMPROVEMENTS
189
-
190
- - Update Fauxhai dependency to 3.0 to bring in newly generated mocked Ohai data
191
-
192
- ## 4.4.0 (September 18, 2015)
193
-
194
- BUG FIXES
195
-
196
- - Documentation improvements (using regex in stubbed commands, chef 12+ custom matcher gotchas)
197
- - Spec suite improvements (dsc resource specs, platform specific configurations)
198
- - Chef 12+ platform specific resource loading related error
199
-
200
- IMPROVEMENTS
201
-
202
- - Support for policy files
203
-
204
- ## 4.3.0 (July 16, 2015)
205
-
206
- BUG FIXES:
207
-
208
- - Improved documentation
209
- - Use TemplateContext's `_extend_modules` for passing on template helper modules to nested partial templates
210
- - Only exit if the status is a failure [GH-565]
211
- - Fix load order on Windows when using the `rights` attributes
212
- - Improve testing matrix and remove deprecated Chef versions
213
- - Suppress chef_gem compile_time warnings
214
- - Fix exceptions on converge for Chef 12.1.0 masking
215
- - Update Librarian `Cheffile` site URL to supermarket.chef.io
216
- - Filter Windows and Unix paths for test coverage report with Berkshelf
217
-
218
- IMPROVEMENTS:
219
-
220
- - Added possibility to specify file_cache_path globally
221
- - Added new capabilities for reboot resource
222
- - Use `Chef::Resource#declared_type` first if available (Chef >= 12), otherwise fall back to `Chef::Resource#resource_name` (Chef <= 11)
223
- - Extend render_file to yield the content as a block
224
- - Add windows_service resource
225
-
226
- ## 4.2.0 (December 25, 2014)
227
-
228
- BUG FIXES:
229
-
230
- - Updated README grep examples
231
- - Fix various typographical errors
232
- - Improved error message when using a deprecated resource matcher
233
-
234
- IMPROVEMENTS:
235
-
236
- - Add support for Chef 12
237
- - Added support for environments in Chef Solo
238
- - Fix location definition for caching
239
- - Allow passing `Chef::Config[:file_cache_path]` from outside
240
- - Update support for Chef 12
241
-
242
- ## 4.1.1 (October 13, 2014)
243
-
244
- BUG FIXES:
245
-
246
- - Fix total fail on my part with deprecations and add test coverage
247
- - Do not validate cookbooks on upload (speed)
248
-
249
- ## 4.1.0 (October 12, 2014)
250
-
251
- BUG FIXES:
252
-
253
- - Bump the minimum required version of Chef to 11.14
254
- - 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
255
-
256
- IMPROVEMENTS:
257
-
258
- - Allow multiple instances of a Chef Server instance
259
- - Separate ChefSpec::Runner into `ChefSpec::SoloRunner` and `ChefSpec::ServerRunner`
260
- - Preliminary support for Chef 12 alpha (not 100% complete)
261
- - Add `SoloRunner` and `ServerRunner` `.converge` methods for quickly converging if you do not need to customize the runner object
262
- - Create isolated Chef Server instances on a per-test or per-suite basis
263
- - Deprecate `ChefSpec::Runner.define_runner_method` in favor of `ChefSpec.define_matcher`
264
- - Deprecate `ChefSpec::Runner.new` - you should specify if you want a `SoloRunner` or `ServerRunner`
265
- - Updated documentation
266
-
267
- BREAKING CHANGES:
268
-
269
- - 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 :(.
270
- - Remove old deprecations - this is not really a breaking change, but the v2.0.0 deprecations have been removed in favor of new ones
271
-
272
- ## 4.0.2 (August 13, 2014)
273
-
274
- BUG FIXES:
275
-
276
- - Fix a regression caused by a new version of Chef Zero in single_org mode
277
-
278
- IMPROVEMENTS:
279
-
280
- - Test against Chef 11.14.0 in the Travis matrix
281
-
282
- ## 4.0.1 (June 27, 2014)
283
-
284
- BUG FIXES:
285
-
286
- - Fix class comparisons
287
- - Update ChefZero API to work again
288
- - Use proper cookbook in the template_finder
289
- - Fix Ruby deprecations
290
- - Various documentation updates
291
-
292
- ## 4.0.0 (June 2, 2014)
293
-
294
- BREAKING CHANGES:
295
-
296
- - **Upgraded to RSpec 3!** RSpec 3 brings many new API changes and syntaxes
297
- - **Bump minimum required Chef version to 11.12!** Without this change, Chef Zero will blow up
298
-
299
- BUG FIXES:
300
-
301
- - Gracefully fail if a resource does not report it's source line in the reporter
302
- - Pull the correct cookbook folder from the stack on Windows (88bfc6)
303
- - Cover resources in render_file matchers for reporting
304
- - Cover resources in link_to matchers for reporting
305
- - Cover resources in do_nothing matchers for reporting
306
- - Fix memory leak in LWRP Resource classes
307
- - Restore the original `cookbook_path` when using librarian-chef
308
- - Documentation fixes
309
- - Disable lazy loading of cached resources
310
- - Fix a bug that will happen in later Chef versions because FreeBSD is evil (13ff143)
311
- - Do not pass local file paths to `preferred_filename_on_disk_location`
312
-
313
- FEATURES:
314
-
315
- - Add runner methods for all the bash, csh, perl, etc resources
316
- - Upgraded fauxhai dependency and specs
317
- - Upgrade Chef Zero for multi-org support
318
-
319
- IMPROVEMENTS:
320
-
321
- - Improved documentation around the `define_runner_method` method
322
- - Update badges to be all SVG
323
- - Test on Ruby 2.1
324
- - Use a randomly assigned port for Chef Zero
325
- - Remove references to `.stub` from documentation
326
-
327
- ## 3.4.0 (March 16, 2014)
328
-
329
- BUG FIXES:
330
-
331
- - Restore Berkshelf 2 support (missing edge case)
332
- - Add negative failure message for subscribes/notifies matchers
333
-
334
- FEATURES:
335
-
336
- - Added `do_nothing` matcher for asserting a resource performed no actions
337
-
338
- IMPROVEMENTS:
339
-
340
- - Increased spec coverage for matchers
341
- - Support RSpec matchers in `with_content`
342
-
343
- ## 3.3.1 (March 11, 2014)
344
-
345
- BUG FIXES:
346
-
347
- - Various typographical fixes in the README
348
- - Remove unused JSON report
349
- - Restore coverage reporting for Berkshelf 2 users
350
- - Minor formatting changes for errors
351
-
352
- IMPROVEMENTS:
353
-
354
- - Remove dependency on i18n and use native ERB instead
355
- - Vendor Berkshelf/Librarian in a "cookbooks" directory so we can shorten the pathname during coverage reporting
356
-
357
- ## 3.3.0 (March 9, 2014)
358
-
359
- BUG FIXES:
360
-
361
- - Update documentation for setting `automatic` attributes
362
- - Update documentation for stubbing data_bags
363
- - Use a non-internal RSpec variable name for expecting exceptions
364
- - Fix the airity of the `stub_node` method
365
-
366
- IMPROVEMENTS:
367
-
368
- - Better filtering protocols for resource coverage
369
-
370
- ## 3.2.0 (January 31, 2014)
371
-
372
- BUG FIXES:
373
-
374
- - Fix coverage calculation when there are no resources in the collection
375
- - Fix misplaced quote in matcher output
376
- - Include all files in generated gem
377
- - Ensure compatibility with Chef HEAD
378
-
379
- IMPROVEMENTS:
380
-
381
- - Test Ruby 2.1 on Travis
382
- - Miscellaneous README typos
383
- - Add `subscribe_to` matchers
384
- - Add documentation for the `with` matcher
385
- - Add support for passing a `node` object directly to the server `create_node` method
386
-
387
- ## 3.1.4 (January 3, 2014)
388
-
389
- BUG FIXES:
390
-
391
- - Correctly expand the node's run_list in server mode
392
- - Actually package i18n translations with the cookbook
393
-
394
- IMPROVEMENTS:
395
-
396
- - Document setting a node's role
397
- - Add examples and features for `stub_node`
398
-
399
- ## 3.1.3 (January 2, 2014)
400
-
401
- BUG FIXES:
402
-
403
- - Fix broken deprecations module
404
- - Update a broken test ([@bknowles])
405
-
406
- IMPROVEMENTS:
407
-
408
- - Better gem description on GitHub and Rubygems
409
- - Helper support for template rendering (Chef 11.4+) ([@geraud])
410
-
411
- ## 3.1.2 (December 30, 2013)
412
-
413
- BUG FIXES:
414
-
415
- - Require i18n 0.6.9 or higher (but less than 1.0.0) ([#289](https://github.com/chefspec/chefspec/issues/245))
416
-
417
- ## 3.1.1 (December 29, 2013)
418
-
419
- BUG FIXES:
420
-
421
- - Handle duplicate resources in the coverage reporter
422
-
423
- ## 3.1.0 (December 29, 2013)
424
-
425
- BUG FIXES:
426
-
427
- - Only remove existing LWRP resources and providers when a new one is encountered ([@student])
428
- - Attempt to coerce dashes to underscores in LWRPs
429
- - Various documentation fixes and typos
430
-
431
- IMPROVEMENTS:
432
-
433
- - Don't include `deprecations` module by default
434
- - Add examples for stubbing commands across recipes
435
- - Yield a block after cookbooks are compiled but before they are converged ([@rteabeault])
436
- - Add IRC Channel #chefspec
437
- - Raise a nice error when `cookbook_path` cannot be determined ([@ryotarai])
438
-
439
- FEATURES:
440
-
441
- - Add support for Librarian ([@mlafeldt])
442
- - Add Cacher module for caching runner results ([@sethvargo] & [@DracoAter])
443
- - Add Chef Zero (server) mode ([@sethvargo])
444
- - Add basic resource reporting (Chef recipe code coverage) ([@sethvargo])
445
- - Use i18n (internationalization) ([@sethvargo])
446
-
447
- ## 3.0.2 (November 6, 2013)
448
-
449
- BUG FIXES:
450
-
451
- - Update links to point at new repository location
452
- - Deleted relish docs to remove confusion
453
- - Bump fauxhai dependency to 2.0 (removing the HTTParty transitive dependency)
454
- - Convert resource names with dashes to underscores when stepping into them
455
-
456
- IMPROVEMENTS:
457
-
458
- - Added a "what people are saying" section to the README - if you have something cool to say about ChefSpec, let me know!
459
- - Add a link to [`knife-spec`](https://github.com/sethvargo/knife-spec)
460
- - Test against Chef 11.8
461
- - New matcher: `have_state_attrs` for testing custom LWRP state attributes
462
- - Run tests in a sandboxed parent instead of tmp (makes Travis happier)
463
-
464
- ## 3.0.1 (October 22, 2013)
465
-
466
- BUG FIXES:
467
-
468
- - Fix an issue where LWRPs were not properly stepped into when `use_inline_resources` was specified ([#244](https://github.com/chefspec/chefspec/issues/244))
469
- - Coerce `render_file` `@expected_content` to a string before asserting if content is included ([#243](https://github.com/chefspec/chefspec/issues/243))
470
-
471
- IMPROVEMENTS:
472
-
473
- - Miscellaneous documentation fixes and additions ([#245](https://github.com/chefspec/chefspec/issues/245), [#241](https://github.com/chefspec/chefspec/issues/241), [#238](https://github.com/chefspec/chefspec/issues/238))
474
-
475
- ## 3.0.0 (October 20, 2013)
476
-
477
- Breaking:
478
-
479
- - Dropped support for Chef 9 & 10
480
- - Renamed `ChefSpec::ChefRunner` to `ChefSpec::Runner` to better reflect what happens in Chef Core. Using `ChefRunner` will throw deprecation errors for now and will be removed in a future release.
481
- - Removed MiniTest Chef Handler examples/matchers
482
- - No longer load default cookbook paths:
483
-
484
- - vendor/cookbooks
485
- - test/cookbooks
486
- - test/integration (test kitchen)
487
- - spec/cookbooks
488
-
489
- - Resource matchers all follow the pattern "(action)_(resource_name)". ChefSpec will warn you of these deprecations in 3.0\. They will be removed in 4.0\. However, some resources cannot be automatically converted - **these resources will raise a deprecation exception of `ChefSpec::NoConversionError`**. The following matchers have changed:
490
-
491
- - `execute_command` => `run_execute`
492
- - `set_service_to_start_on_boot` => `enable_service`
493
- - `create_file_with_content` => `render_file`
494
- - `execute_(script)` => `run_(script)`
495
- - `execute_ruby_block` => `run_ruby_block`
496
- - `install_package_at_version` => `install_package().with(version: '')`
497
- - `*_python_pip` => (removed - see "Packaging Custom LWRPs in the README")
498
-
499
- - Remove dependency on Erubis
500
-
501
- - Remove dependency on MiniTest Chef Handler
502
-
503
- - Remove development dependency on Cucumber
504
-
505
- - Remove development dependency on i18n
506
-
507
- - Remove development dependency on simplecov
508
-
509
- - Separate package matchers. In prior versions of ChefSpec, the `package` matcher would match on any kind of package and any kind of package action. However, some subclasses of the package resource do not support all actions. Each package provider now has it's own matcher with only the actions it supports. Prior specs that used the generic `package` matcher will no longer match on subclasses - you must use the specific subclass matcher.
510
-
511
- - Separate file/cookbook_file/template matchers. In prior versions of ChefSpec, the `file` matcher would match on `file`, `cookbook_file`, and `template`. This is not ideal because it doesn't verify the correct message was sent. Now, `file`, `cookbook_file`, and `template` matchers will _only_ match resources of that type. For generic file checking, please use the new `render_file` matcher.
512
-
513
- - Guards are now evaluated by default. If a shell guard is executed, it must first be stubbed with the `stub_command` macro.
514
-
515
- - `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.
516
-
517
- - `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.
518
-
519
- FEATURES:
520
-
521
- - 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.
522
- - All resources now accept a `with` chainable for matching specific resource attributes.
523
- - Windows attributes are now testable on non-Windows systems (like `inherits`)
524
- - Added `batch` resource matchers
525
- - Added `cookbook_file` resource matchers
526
- - Added `deploy` resource matchers
527
- - Added `erl_call` resource matchers
528
- - Added `git` resource matchers
529
- - Added `http_request` resource matchers
530
- - Added `ifconfig` resource matchers
531
- - Normalized `link` resource matchers
532
- - Added `log` resource matchers
533
- - Added `mdadm` resource matchers
534
- - Added `mount` resource matchers
535
- - Added `:immediate` and `:delayed` notification matchers
536
- - Added `ohai` resource matchers
537
- - Added `powershell_script` matchers (Chef 11.6+)
538
- - Added `registry_key` matchers
539
- - Added `remote_directory` matchers
540
- - Added `route` matchers
541
- - Added `subversion` matchers
542
- - Added `stub_command` macro (formerly on `ChefSpec::ChefRunner`) for stubbbing the results of shell commands. Because shell commands are evaluated by default, ChefSpec will raise an exception when encountering a shell command that has not been stubbed.
543
- - Added `stub_search` macro for easily stubbing `search` calls. Like shell commands, ChefSpec will raise an exception when encountering a `search` call that has not been stubbed.
544
- - Added `stub_data_bag` macro for easily stubbing `data_bag` calls. Like shell commands, ChefSpec will raise an exception when encountering a `data_bag` call that has not been stubbed.
545
- - Added `stub_data_bag_item` macro for easily stubbing`data_bag_item` calls. Like shell commands, ChefSpec will raise an exception when encountering a `data_bag_item` call that has not been stubbed.
546
- - Added `stub_node` helper for quickly generating a node object from Fauxhai data
547
- - Added `ChefSpec::Runner#apply` command to mimic the behavior of `chef-apply` (use with caution)
548
- - Share the `ChefSpec::Runner` object with the Node object
549
- - Add `chefspec/berkshelf` for easily integrating specs with Berkshelf (2 & 3)
550
- - Add `.at_compile_time` and `.at_converge_time` matchers for asserting which phase of the Chef run a resource should be run
551
-
552
- IMPROVEMENTS:
553
-
554
- - Move to inline documentation (Yard)
555
- - Implement InProcess Aruba testing for ultra-fast tests
556
- - Create "examples" directory for testing and demonstration
557
- - Unified all failure_messages_for_should
558
- - Use `shared_examples` for easily testing defined custom matchers
559
- - Infer the `cookbook_path` from the calling spec
560
- - Directly set node attributes with Fauxhai (formerly this was an O(n) operation)
561
- - Refactored ExpectExpectation to work without stubbing
562
- - Use Chef's `resource_collection` to identify resources instead of our own custom proxy
563
-
564
- ## 2.0.1 (August 28, 2013)
565
-
566
- BUG FIXES:
567
-
568
- - Add missing second optional parameter to `Hash#respond_to?` monkey patch
569
-
570
- FEATURES
571
-
572
- - Improve error message when using a regular express
573
- - Improve documentation for Python packages
574
-
575
- ## 2.0.0 (August 22, 2013)
576
-
577
- Breaking:
578
-
579
- - Remove support for REE ([@andrewgross] for the CI)
580
-
581
- BUG FIXES:
582
-
583
- - Better failure message for `create_remote_file` ([@tmatilai])
584
- - Add `cookbook_file` as an accepted type to the `create_file` matchers ([@dafyddcrosby])
585
- - Ensure formatter is only registered once ([@student])
586
- - Signifant README updates ([@phoolish])
587
- - Fix `described_recipe` helper (S.R.Garcia)
588
- - Refactor Chef 10/11 template rendering ([@sethvargo])
589
- - Fix CI ([@sethvargo])
590
- - Match File actions as an array ([@sethvargo])
591
-
592
- FEATURES:
593
-
594
- - Extend `ruby_block` matcher to accept regular expressions ([@ssimeonov])
595
- - Add `create_remote_file_if_missing` matcher ([@jimhopp])
596
- - Extend `execute` matcher to accept regular expressions ([@eliaslevy])
597
- - Add ability to expect exceptions during a run ([@student])
598
- - Add regular expression support for resource names ([@mapleoin])
599
- - Add support for `python_pip` LWRP ([@mapleoin])
600
-
601
- ## 1.3.1 (June 10, 2013)
602
-
603
- BUG FIXES:
604
-
605
- - Allow the user to override `cookbook_path` again
606
-
607
- ## 1.3.0 (June 6, 2013)
608
-
609
- FEATURES:
610
-
611
- - Added the ability to evaluate `only_if` and `not_if` conditional guards and support for stubbing shell guards (#142, #144).
612
- - New `described_recipe` and `described_cookbook` helpers to keep your specs DRY (#140). Thanks Andrey Chernih.
613
-
614
- BUG FIXES:
615
-
616
- - Ensure that Ohai plugin reloader works with ChefSpec (#141). Thanks Andrey Chernih.
617
-
618
- ## 1.2.0 (May 16, 2013)
619
-
620
- FEATURES:
621
-
622
- - Add support for partial files (@RanjibDey)
623
- - Automatically check certain directories for cookbooks (@sethvargo)
624
-
625
- ## 1.1.0 (May 10, 2013)
626
-
627
- FEATURES:
628
-
629
- - Upgrade to newest version of fauxhai (@tmatilai)
630
- - Make `find_resource` a public method (@adamhjk)
631
- - Add path support (from fauxhai) (@RanjibDey)
632
- - Custom Chef formatter for ChefSpec (removes pesky output) (@sethvargo)
633
-
634
- BUG FIXES:
635
-
636
- - Remove pesky output from Chef 11
637
-
638
- ## 1.0.0 (April 22, 2013)
639
-
640
- FEATURES:
641
-
642
- - Add support for matching file content using Regular Expressions (@ketan)
643
- - Add support for `ruby_block` matcher (Andrey Vorobiev)
644
- - Use Fauxhai for node attributes (see 4529c10)
645
- - Moved `test` and `development` into gemspec for transparency
646
- - Improve message logging and testing (@tmatilai)
647
- - Chef 11 compatibility (still Chef 10 compatible)
648
- - Accept and document new RSpec "expect" syntax
649
- - Attribute matchers for various providers (@bjoernalbers)
650
- - Add execute_{bash,csh,perl,python,ruby}_script matchers ([@mlafeldt])
651
- - Add group and user resource matchers (@gildegoma)
652
- - Add support for `yum_package` (Justin Witrick)
653
- - Add ISSUES.md
654
- - Add CONTRIBUTING.md
655
- - Relax gemspec constraints (@juliandunn)
656
- - Improve documentation and examples
657
-
658
- BUG FIXES:
659
-
660
- - Fix Rubygems/Bundler 2.0 compatibility issues
661
- - Upgrade to newest RSpec
662
- - Fix Chef 11 incompatibility
663
- - Various documentation fixes
664
-
665
- ## 0.9.0 (November 10, 2012)
666
-
667
- FEATURES:
668
-
669
- - Support added for the `user` resource (#6). Thanks Ranjib Dey.
670
- - Support for making assertions about notifications added (#49). Thanks to Ranjib Dey.
671
- - New `include_recipe` matcher added (#50). Thanks Ranjib Dey.
672
- - Support added for the Windows `env` resource (#51). Thanks Ranjib Dey.
673
- - Convenience methods for common resources added to `ChefRunner` (#51). Thanks Ranjib Dey.
674
- - Further resource convenience methods added (#60). Thanks to Ketan Padegaonkar.
675
- - Support for the `:disable` action added to the service resource (#67). Thanks to Chris Lundquist.
676
- - Add a matcher to assert that a service is not running on boot (#58). Thanks to Ketan Padegaonkar.
677
- - Support added for the `chef_gem` resource (#74). Thanks to Jim Hopp.
678
-
679
- BUG FIXES:
680
-
681
- - Avoid failure if template path is not writable (#48). Thanks to Augusto Becciu and Jim Hopp.
682
- - Style fix for the README (#55). Thanks Greg Karékinian.
683
- - Ensure notification assertions work where the resource name contains brackets (#57). Thanks Sean Nolen.
684
- - Unit tests updated to explicitly specify attribute precedence as required from Chef 11 (#70). Thanks Mathias Lafeldt.
685
- - Documentation added to the README for the `create_remote_file` matcher (#71). Thanks Mathias Lafeldt.
686
- - Clarify that `create_file_with_content` matches on partial content (#72). Thanks Mathias Lafeldt.
687
-
688
- ## 0.8.0 (September 14, 2012)
689
-
690
- FEATURES:
691
-
692
- - LWRP support added (#40). You can now make assertions about the resources created by a provider by telling chefspec to [step into a provider implementation](https://github.com/chefspec/chefspec/tree/v0.8.0#writing-examples-for-lwrps). Thanks to Augusto Becciu for implementing this feature.
693
- - Updated for compatibility with Chef 10.14\. Thanks Augusto Becciu.
694
-
695
- BUG FIXES:
696
-
697
- - Template paths are no longer hard-coded to live under `default` (#32). Thanks Augusto Becciu.
698
-
699
- ## 0.7.0 (August 27, 2012)
700
-
701
- FEATURES:
702
-
703
- - Cron resource support added (#33). Thanks Alexander Tamoykin.
704
- - RSpec dependency [bumped to 2.11](https://github.com/rspec/rspec-core/blob/b8197262d143294bf849ab58d1586d24537965ab/Changelog.md) which has [named subject](http://blog.davidchelimsky.net/2012/05/13/spec-smell-explicit-use-of-subject/) support (#37). Thanks Doug Ireton.
705
-
706
- BUG FIXES:
707
-
708
- - Correctly infer the default `cookbook_path` on Windows (#38). Thanks Torben Knerr.
709
-
710
- ## 0.6.1 (June 21, 2012)
711
-
712
- FEATURES:
713
-
714
- - With the [release of Chef 10.12.0](http://www.opscode.com/blog/2012/06/19/chef-10-12-0-released/) the Chef versioning scheme has changed to make use of the major version field. The constraint on chef is now optimistic. Thanks to Robert J. Berger of Runa.com for flagging this issue (#28).
715
-
716
- ## 0.6.0 (May 31, 2012)
717
-
718
- FEATURES:
719
-
720
- - Service matchers extended to add support for the `:nothing` and `:enabled` actions. Thanks to Steve Lum (#20).
721
- - Added mock value for `node['languages']` to prevent failure when loading cookbooks that expect this attribute to have been populated by OHAI. Thanks to Jim Hopp (#23).
722
- - Matchers added for the `link` resource. Thanks to James Burgess (#25).
723
- - Matchers added for the `remote_file` resource. Thanks to Matt Pruitt (#26).
724
-
725
- ## 0.5.0 (February 20, 2012)
726
-
727
- FEATURES:
728
-
729
- - Thanks to Chris Griego and Morgan Nelson for these improvements:
730
-
731
- - Support both arrays and raw symbols for actions in the file content matcher (#14).
732
- - Add support for cookbook_file resources (#14).
733
-
734
- - Support added for `gem_package` resources. Thanks to Jim Hopp from Lookout (#16).
735
-
736
- BUG FIXES:
737
-
738
- - Set the client_key to nil so that Chef::Search::Query.new doesn't raise (#14). Thanks Chris Griego and Morgan Nelson.
739
-
740
- ## 0.4.0 (November 14, 2011)
741
-
742
- FEATURES:
743
-
744
- - Ruby 1.9.3 is now supported.
745
- - The `create_file_with_content` matcher now matches on partial content (#13). This is an API behaviour change but sufficiently minor and unlikely to break existing specs that I'm not bumping the major version. Thanks Chris Griego and Morgan Nelson from getaroom.
746
-
747
- BUG FIXES:
748
-
749
- - Fixed a bug in the `install_package_at_version` matcher where it would error if the package action was not explicitly specified (#13). Thanks Chris Griego and Morgan Nelson from getaroom.
750
-
751
- ## 0.3.0 (October 2, 2011)
752
-
753
- FEATURES:
754
-
755
- - [Added new matcher](https://www.relishapp.com/chefspec/chefspec/docs/write-examples-for-templates) `create_file_with_content` for verifying Chef `template` resource generated content.
756
- - [Knife plugin](https://www.relishapp.com/chefspec/chefspec/docs/generate-placeholder-examples) added to generate placeholder examples.
757
-
758
- ## 0.2.1 (September 21, 2011)
759
-
760
- BUG FIXES:
761
-
762
- - Fixed typo in 0.2.0 botched release. Pro-tip: run your tests.
763
-
764
- ## 0.2.0 (September 21, 2011)
765
-
766
- FEATURES:
767
-
768
- - Significantly improved performance by not invoking OHAI.
769
- - ChefRunner constructor now accepts a block to set node attributes.
770
- - ChefRunner constructor now takes an options hash.
771
- - Converge now returns a reference to the ChefRunner to support calling converge in a let block.
772
-
773
- BUG FIXES:
774
-
775
- - Removed LWRP redefinition warnings.
776
- - Reset run_list between calls to converge.
777
- - Readable to_s output for failed specs.
778
-
779
- ## 0.1.0 (August 9, 2011)
780
-
781
- FEATURES:
782
-
783
- - Support for Chef 0.1.x (#2)
784
- - Support MRI 1.9.2 (#3)
785
-
786
- BUG FIXES:
787
-
788
- - Added specs.
789
-
790
- ## 0.0.2 (July 31, 2011)
791
-
792
- BUG FIXES:
793
-
794
- - Corrected gem dependencies.
795
-
796
- ## 0.0.1 (July 31, 2011)
797
-
798
- Initial version.
799
-
800
- --------------------------------------------------------------------------------
801
-
802
- [@acrmp]: https://github.com/acrmp "Andrew Crump GitHub"
803
- [@andrewgross]: https://github.com/andrewgross "Andrew Gross's GitHub"
804
- [@bknowles]: https://github.com/bknowles "Brad Knowles's GitHub"
805
- [@dafyddcrosby]: https://github.com/dafyddcrosby "Dafydd Crosby's GitHub"
806
- [@dracoater]: https://github.com/DracoAter "Juri Timošin's GitHub"
807
- [@eliaslevy]: https://github.com/eliaslevy "eliaslevy's GitHub"
808
- [@geraud]: https://github.com/geraud "Geraud Boyer's GitHub"
809
- [@jimhopp]: https://github.com/jimhopp "Jim Hopp's GitHub"
810
- [@mapleoin]: https://github.com/mapleoin "Ionuț Arțăriși's GitHub"
811
- [@mlafeldt]: https://github.com/mlafeldt "Mathias Lafeldt's GitHub"
812
- [@phoolish]: https://github.com/phoolish "phoolish's GitHub"
813
- [@ranjib]: https://github.com/ranjib "Ranjib Dey's GitHub"
814
- [@rteabeault]: https://github.com/rteabeault "rteabeault's GitHub"
815
- [@ryotarai]: https://github.com/ryotarai "Ryota Arai's GitHub"
816
- [@sethvargo]: https://github.com/sethvargo "Seth Vargo GitHub"
817
- [@ssimeonov]: https://github.com/ssimeonov "Simeon Simeonov's GitHub"
818
- [@student]: https://github.com/student "Nathan Zook's GitHub"
819
- [@tmatilai]: https://github.com/tmatilai "Teemu Matilainen's GitHub"