diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-03-10 22:50:20 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-03-10 22:50:20 +0100 |
commit | e1e83b07d027a2b2796dedc1f5a515950d26b322 (patch) | |
tree | 30ba97b2a342ff58e2b5f423bd6f2f85908d254f /test/executable/suite.rb | |
parent | 36e9155f13308236387c535a5bbb95bb188dc8a5 (diff) | |
parent | fc16be24d48f8a729ac987149f98f19725943e0d (diff) | |
download | coderay-e1e83b07d027a2b2796dedc1f5a515950d26b322.tar.gz |
Merge branch 'master' into fix-rdoc
Diffstat (limited to 'test/executable/suite.rb')
-rw-r--r-- | test/executable/suite.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/executable/suite.rb b/test/executable/suite.rb index f3495d6..d386f4b 100644 --- a/test/executable/suite.rb +++ b/test/executable/suite.rb @@ -14,12 +14,13 @@ class TestCodeRayExecutable < Test::Unit::TestCase ROOT_DIR = Pathname.new(File.dirname(__FILE__)) + '..' + '..' EXECUTABLE = ROOT_DIR + 'bin' + 'coderay' + RUBY_COMMAND = RUBY_VERSION < '2.0.0' ? 'ruby -w' : 'ruby' # Ruby 2 currently throws warnings for bundler EXE_COMMAND = if RUBY_PLATFORM === 'java' && `ruby --ng -e '' 2> /dev/null` && $?.success? # use Nailgun - 'ruby --ng -wI%s %s' + "#{RUBY_COMMAND}--ng -I%s %s" else - 'ruby -wI%s %s' + "#{RUBY_COMMAND} -I%s %s" end % [ROOT_DIR + 'lib', EXECUTABLE] def coderay args, options = {} |