summaryrefslogtreecommitdiff
path: root/spec/unit/role_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* autofixing auto-inserted delimiterslcg/chefstyle-batchLamont Granquist2016-02-091-3/+3
|
* auto fixing some rubocopsLamont Granquist2016-02-091-3/+3
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-051-10/+6
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* 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"
* Use double quotes by defaultThom May2016-01-141-54/+54
| | | | | | | 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.
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-2/+2
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* Only automatically set resources that do class X < Chef::Resource,jk/3524John Keiser2015-06-161-1/+1
| | | | not X = Class.new(Chef::Resource)
* Stub `windows?` on ChefConfig so it applies to configdanielsdeleo2015-05-201-1/+1
|
* Update to RSpec 3.Claire McQuin2014-10-291-84/+85
|
* 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
|
* role_spec unit tests pass on windowsJay Mundrawala2014-09-291-0/+1
|
* #1739 - Add explicit testDaniel O'Connor2014-08-031-0/+6
|
* Merge pull request #759 from bensomers/glob_rolesClaire McQuin2014-06-161-28/+46
|\ | | | | [CHEF-4193] Enabling storage of roles in subdirectories
| * Delete accidental unused line in spec fileBen Somers2014-06-121-1/+0
| |
| * Fixed specs for Chef::Role.from_diskBen Somers2014-06-081-24/+18
| | | | | | | | | | Specs were broken because of rebasing the glob_roles patch onto the current master. Also removed an exception raise I'd accidentally left in.
| * Added duplicate role detection for Role.from_diskBen Somers2014-06-081-0/+6
| | | | | | | | | | | | Now Role.from_disk raises an error when it detects two roles of the same type (.rb or .json) exist anywhere in the roles directory or subdirectories.
| * Enabling storage of roles in subdirectoriesBen Somers2014-06-081-8/+27
| | | | | | | | | | | | | | | | | | Storing roles in subdirectories is already effectively enabled for Hosted Chef, as the directory structure gets flattened when they are uploaded. But it is not currently possible with Chef-Solo; one has to flatten the directory manually before running Chef-Solo. This patch changes that behavior, and enables Chef-Solo with roles in subdirectories.
* | Put cache at HOME/.chef.d if /var/chef can't be accessed.Claire McQuin2014-05-221-1/+5
|/
* Fixing role test to be compatible with last master versionBertrand Paquet2013-10-101-1/+1
|
* Apply comments from @btmBertrand Paquet2013-10-101-6/+0
|
* [CHEF-2928] Allow to use array in role_pathBertrand Paquet2013-10-101-4/+63
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+275
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!