summaryrefslogtreecommitdiff
path: root/spec/support/platform_helpers.rb
diff options
context:
space:
mode:
authorMukta A <mukta.aphale@clogeny.com>2013-09-03 14:13:38 +0530
committeradamedx <adamed@opscode.com>2013-09-03 15:28:49 -0700
commitfa11247951c864fd9062ed4cde513175f1ef27df (patch)
tree24646551ce6b6899be03e1c4520b315f07a34d12 /spec/support/platform_helpers.rb
parentd4474142e3260e3a55326a8294c632a4f5d04518 (diff)
downloadchef-fa11247951c864fd9062ed4cde513175f1ef27df.tar.gz
Added a new method to check for suse platform for testing
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r--spec/support/platform_helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index b6afb5e4ff..1501a162e0 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -91,3 +91,7 @@ def selinux_enabled?
return false
end
end
+
+def suse?
+ File.exists?("/etc/SuSE-release")
+end