summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-09-08 12:09:17 -0700
committerTim Smith <tsmith84@gmail.com>2020-09-08 12:23:12 -0700
commit813180ea8e046476a08f0c13c6a520c98bc5560d (patch)
tree06017ed29b7eb11893f4de82fde3063b574d35b8
parent5fd33555791c3372948f5c130faadcd8dbfeb9aa (diff)
downloadohai-813180ea8e046476a08f0c13c6a520c98bc5560d.tar.gz
Remove unused spec helpers
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/ohai/plugins/linode.rb2
-rw-r--r--spec/support/platform_helpers.rb12
2 files changed, 1 insertions, 13 deletions
diff --git a/lib/ohai/plugins/linode.rb b/lib/ohai/plugins/linode.rb
index 735134ce..60cdb210 100644
--- a/lib/ohai/plugins/linode.rb
+++ b/lib/ohai/plugins/linode.rb
@@ -25,7 +25,7 @@ Ohai.plugin(:Linode) do
# Returns true or false
def has_linode_kernel?
if ( kernel_data = kernel )
- kernel_data[:release].split("-").last.include?('linode')
+ kernel_data[:release].split("-").last.include?("linode")
end
end
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index eaf8bc00..01df9626 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -23,16 +23,4 @@ def unix?
!windows?
end
-def os_x?
- RUBY_PLATFORM.include?('darwin')
-end
-
-def solaris?
- RUBY_PLATFORM.include?('solaris')
-end
-
-def freebsd?
- RUBY_PLATFORM.include?('freebsd')
-end
-
DEV_NULL = windows? ? "NUL" : "/dev/null"