summaryrefslogtreecommitdiff
path: root/test/functional/basic.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/basic.rb')
-rwxr-xr-xtest/functional/basic.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/basic.rb b/test/functional/basic.rb
index 9f68763..150089e 100755
--- a/test/functional/basic.rb
+++ b/test/functional/basic.rb
@@ -1,5 +1,5 @@
-require "test/unit"
-require "coderay"
+require 'test/unit'
+require 'coderay'
class BasicTest < Test::Unit::TestCase
@@ -103,7 +103,7 @@ more code # and another comment, in-line.
def test_rubygems_not_loaded
assert_equal nil, defined? Gem
- end unless RUBY_VERSION >= '1.9'
+ end if ENV['check_rubygems'] && RUBY_VERSION < '1.9'
def test_list_of_encoders
assert_kind_of(Array, CodeRay::Encoders.list)