summaryrefslogtreecommitdiff
path: root/t/test-rubocop.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2016-02-10 10:45:07 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2016-02-10 10:45:07 +0000
commit3cfb74235885faa268e4984962e36f7254478104 (patch)
treecbd2fb55e2781ed718b65c474c2ba49cc0201fa6 /t/test-rubocop.rb
parent62fc56d4bc7a7e85828520eb7c586cfe0cedd2fc (diff)
Updated tests to use 'omit' when available
The redis and rubocop tests now skip on ruby > 2.0 (I think)
Diffstat (limited to 't/test-rubocop.rb')
-rwxr-xr-xt/test-rubocop.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/test-rubocop.rb b/t/test-rubocop.rb
index f4a7612..57457b7 100755
--- a/t/test-rubocop.rb
+++ b/t/test-rubocop.rb
@@ -23,7 +23,11 @@ class TestRubocop < Test::Unit::TestCase
assert(result == 0, 'No errors found')
rescue LoadError => ex
- skip("Failed to load 'rubocop' gem - skipping")
+ if methods.include?(:skip)
+ skip("Failed to load 'rubocop' gem - skipping")
+ else
+ omit("Failed to load 'rubocop' gem - skipping")
+ end
end
end