summaryrefslogtreecommitdiff
path: root/spec/unit/user_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update to RSpec 3.Claire McQuin2014-10-291-50/+50
|
* 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-1/+5
|
* [CHEF-5328] Added tests for Chef::User.list with inflate=trueXabier de Zuazo2014-05-241-0/+12
|
* s/mock\(/double(/gLamont Granquist2014-01-291-1/+1
|
* s/stub!/stub/gLamont Granquist2014-01-291-3/+3
| | | | fix deprecation warnings
* User tests are about users, avoid '@client' as a variable name.Steven Danna2013-02-061-27/+27
|
* Use same name validations as used by the server in user model.Steven Danna2013-02-061-0/+14
|
* Chef::User.list should handle responses from Hosted/Private ChefSteven Danna2013-02-061-0/+20
| | | | | | The API responses from a GET to the "users" endpoint currently returns a different response on Hosted and Private Chef. Chef::User.list transforms this response into form returned by the open source server.
* Add Chef::User classSteven Danna2013-02-061-0/+221
This commit adds a Chef::User class similar to the Chef::ApiClient class. Notable differences are the presence of a password attribute and the fact that the API will not return chef_type or json_type attributes. The latter means that the Chef::REST class will not automatically inflate API responses to Chef::User objects.