summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2016-11-09 19:26:30 -0800
committerTim Smith <tsmith@chef.io>2016-11-09 19:26:30 -0800
commitc8282b416b330decefe56caca7428fc7f38d6144 (patch)
treef21632ea6a33e099973387320991a30158ff0358
parent0eb54010fe59afbbd7677bff331c9d4463125d9d (diff)
downloadohai-old_helpers.tar.gz
Remove Ruby 1.8 / 1.9 spec helpersold_helpers
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/spec_helper.rb2
-rw-r--r--spec/support/platform_helpers.rb10
2 files changed, 0 insertions, 12 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 8932cdc8..48c09f72 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -109,8 +109,6 @@ RSpec.configure do |config|
config.filter_run_excluding :windows_only => true unless windows?
config.filter_run_excluding :unix_only => true unless unix?
- config.filter_run_excluding :ruby_18_only => true unless ruby_18?
- config.filter_run_excluding :ruby_19_only => true unless ruby_19?
config.filter_run_excluding :requires_root => true unless ENV["USER"] == "root"
config.filter_run_excluding :requires_unprivileged_user => true if ENV["USER"] == "root"
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index 4a4cb91d..4f1eb1c8 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -1,17 +1,7 @@
-def ruby_19?
- !!(RUBY_VERSION =~ /^1.9/)
-end
-
-def ruby_18?
- !!(RUBY_VERSION =~ /^1.8/)
-end
-
def windows?
!!(RUBY_PLATFORM =~ /mswin|mingw|windows/)
end
-# def jruby?
-
def unix?
!windows?
end