From c8282b416b330decefe56caca7428fc7f38d6144 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 9 Nov 2016 19:26:30 -0800 Subject: Remove Ruby 1.8 / 1.9 spec helpers Signed-off-by: Tim Smith --- spec/spec_helper.rb | 2 -- spec/support/platform_helpers.rb | 10 ---------- 2 files changed, 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 -- cgit v1.2.1