summaryrefslogtreecommitdiff
path: root/chef/Gemfile
diff options
context:
space:
mode:
authorBryan McLellan <btm@opscode.com>2012-07-23 07:16:04 -0700
committerBryan McLellan <btm@opscode.com>2012-07-23 07:16:04 -0700
commit5e7f9d5004655a775f874cf5bd8a5e5295c3f2f5 (patch)
tree7c8621de44a6b8769613ddc44b71d95a6b727b31 /chef/Gemfile
parentdf213c5f4f8a08373a875473fb27c55f726ddfbb (diff)
downloadchef-5e7f9d5004655a775f874cf5bd8a5e5295c3f2f5.tar.gz
Fix broken whyrun unit test for user resource
This initially appeared as a failing test user Ruby 1.8 with an error of "undefined method `sp_pwdp' for nil:NilClass." This was ultimately because we were doing a lookup for user info for 'adam' which didn't exist. However, getpwsnam will return nil if you're not root and much time was spent reworking the pending blocks which are particularly tricky and usually are not doing what you think they're doing. Running these tests under bundler will require the ruby-shadow gem, so I have added that as a development dependency.
Diffstat (limited to 'chef/Gemfile')
-rw-r--r--chef/Gemfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/chef/Gemfile b/chef/Gemfile
index 55c5e26c09..0f5aff5a4a 100644
--- a/chef/Gemfile
+++ b/chef/Gemfile
@@ -11,6 +11,7 @@ group(:development, :test) do
# thin requires eventmachine, which won't work under Ruby 1.9 on Windows
# http://gembundler.com/man/gemfile.5.html
gem 'thin', :platforms => :ruby
+ gem 'ruby-shadow'
# gem 'awesome_print'
# gem 'pry'
end