summaryrefslogtreecommitdiff
path: root/spec/unit/cookbook_version_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-1/+1
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Use double quotes by defaultThom May2016-01-141-39/+39
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-131-1/+1
| | | | chefstyle -a fixed 1044 occurrances
* Only automatically set resources that do class X < Chef::Resource,jk/3524John Keiser2015-06-161-1/+1
| | | | not X = Class.new(Chef::Resource)
* Purge pending specscleanup-pendingdanielsdeleo2015-05-231-20/+0
| | | | RSpec isn't a bug database
* Remove deprecations for Cookbook Version HTTP resource behaviorsdanielsdeleo2015-02-111-11/+15
| | | | | | | | We cannot determine the best way to organize various CookbookManifest formats ahead of time, so we make the CookbookManifest API private, and un-deprecate the methods in CookbookVersion that delegate to CookbookManifest. We'll re-deprecate these when we have a stable public API for CookbookManifest behaviors.
* Test cookbook manifest behavior separatelydanielsdeleo2015-02-111-191/+0
|
* Standardize deprecation code within CookbookVersiondanielsdeleo2015-02-111-6/+12
|
* Change hard errors to warnings for deprecated methodsdanielsdeleo2015-02-111-1/+38
|
* Temporarily implement deprecation warnings as errorsdanielsdeleo2015-02-111-3/+5
| | | | | This is an intermediate step where we're cleaning up all internal code to convert cookbook version objects to JSON in the new way.
* typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-081-6/+6
|
* Update to RSpec 3.Claire McQuin2014-10-291-130/+130
|
* Merge pull request #2165 from coderanger/rfc017Serdar Sutay2014-10-101-2/+79
|\ | | | | RFC 17 implementation
| * More unit tests to catch the negative case.Noah Kantrowitz2014-10-041-0/+16
| |
| * Fix up the tests post-merge.Noah Kantrowitz2014-10-041-36/+54
| |
| * Tests for new loader behavior.Noah Kantrowitz2014-10-041-3/+46
| | | | | | | | | | Conflicts: spec/unit/cookbook_version_spec.rb
* | My local gemset was including the `json` gem, causing these tests to be ↵tyler-ball2014-10-071-1/+1
| | | | | | | | ineffective. Also made them more clear
* | Trying to eradicate all traces of the JSON gem from Cheftyler-ball2014-10-071-0/+4
|/
* Make root_dir required for CookbookVersion to generate manifestJohn Keiser2014-04-231-122/+224
|
* Add methods to query for template/file existence in run contextdanielsdeleo2013-08-021-0/+16
| | | | | | | - Convenience methods added to CookbookVersion to query if a cookbook file or template is available for a given node in that cookbook - Convenience methods added to RunContext to query the existence of cookbook files or templates
* [CHEF-3919] cookbook version specific code factored out from Chef::Version, ↵Xabier de Zuazo2013-04-111-1/+1
| | | | new classes created: Chef::Version::Cookbook and Chef::VersionConstraint::Cookbook
* [CHEF-3919] Some broken test fixedXabier de Zuazo2013-04-111-1/+1
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+307
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!