summaryrefslogtreecommitdiff
path: root/spec/unit/resource/user_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove the canonical DSLLamont Granquist2020-03-031-3/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert the user resource to use the resource DSLTim Smith2019-02-191-22/+21
| | | | | | This is one of the last ones that needed to be updated for the resource DSL. This gets us quite a bit of resource inspector goodness. Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Style/HashSyntaxLamont Granquist2018-07-021-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove useless class tests and cleanup specsresource_spec_cleanupTim Smith2018-01-201-5/+0
| | | | | | We create the class then instantly check that it's exactly what we created. There's not much value in that. This also converts more things over to let. Signed-off-by: Tim Smith <tsmith@chef.io>
* Cleanup for resource specsTim Smith2017-12-181-53/+47
| | | | | | | | | Convert everything to let and update the tense Nothing real magical here, but gets us one step closer to uniformity in the specs Signed-off-by: Tim Smith <tsmith@chef.io>
* fix specs broken by removal of state methodLamont Granquist2017-03-171-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef-13: Remove supports API from all user providersLamont Granquist2017-02-281-5/+5
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* user provider manage_home behavior and refactorLamont Granquist2016-08-191-1/+1
| | | | | | | | | split out the user provider into 1:1 resources. fix the behavior of the linux user provider to implement manage_home behavior correctly. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* autofixing whitespace copsLamont Granquist2016-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| | | | | | | 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.
* Test updates for the changes to default actions.Noah Kantrowitz2015-06-291-1/+1
|
* updating resources/providers unit tests to rpsec3Lamont Granquist2014-10-241-23/+23
| | | | mechanically generated patch using transpec 2.3.7 gem
* Add "force" attribute to resource/user, passing "-f" to userdelChris Aumann2014-07-081-0/+4
| | | | This allows removal of logged in users.
* fix should_not raise_error(SpecificException)Lamont Granquist2014-01-291-2/+2
|
* Normalize whitespace on all filesSeth Vargo2013-09-261-13/+13
|
* CHEF-2770: Add a little clarity to the test descriptionsBryan McLellan2013-05-301-1/+1
|
* fixing tests, adding a test for the carrotJessica Bourne2013-05-301-2/+4
|
* adding testsJessica Bourne2013-05-301-0/+5
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+122
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!