summaryrefslogtreecommitdiff
path: root/t/test-rubocop.rb
diff options
context:
space:
mode:
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