summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hinderliter <tim@opscode.com>2010-11-08 09:49:27 -0800
committerTim Hinderliter <tim@opscode.com>2010-11-08 09:50:22 -0800
commitd0424f4f6f53187f8c54b455e01d1f85f7defce0 (patch)
treee8327eff9d87674360e1cbdbe26b7610f37b2e7b
parentcca4a1015dc8235a02492dd396f8e70f4f35d6c0 (diff)
downloadchef-d0424f4f6f53187f8c54b455e01d1f85f7defce0.tar.gz
Fix CHEF-1851 again; call .to_i on e.response.code before comparing to
412
-rw-r--r--features/support/env.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/support/env.rb b/features/support/env.rb
index 652169a2b6..e26b81cb86 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -99,7 +99,7 @@ def create_databases
cdb.create_db
db_created = true
rescue Net::HTTPServerException => e
- unless e.response.code == 412
+ unless e.response.code.to_i == 412
# Re-raise if we got anything but 412.
raise
end