use consistent relative require for test/helper
This commit is contained in:
parent
19506b13db
commit
3f1a8dfef3
@ -1,4 +1,4 @@
|
||||
rootdir = File.dirname(File.dirname(__FILE__))
|
||||
rootdir = File.expand_path('../../lib', __FILE__)
|
||||
$LOAD_PATH.unshift "#{rootdir}/lib"
|
||||
|
||||
require 'test/unit'
|
||||
|
@ -1,4 +1,5 @@
|
||||
require File.expand_path('../helper', __FILE__)
|
||||
require 'test/unit'
|
||||
|
||||
Dir["#{File.dirname(__FILE__)}/test_*.rb"].
|
||||
Dir[File.expand_path('../test_*.rb', __FILE__)].
|
||||
each { |file| require file }
|
||||
|
@ -1,4 +1,4 @@
|
||||
require File.dirname(__FILE__) + '/helper'
|
||||
require File.expand_path('../helper', __FILE__)
|
||||
|
||||
class RoccoBasicTests < Test::Unit::TestCase
|
||||
def test_rocco_exists_and_is_instancable
|
||||
|
@ -1,4 +1,4 @@
|
||||
require File.dirname(__FILE__) + '/helper'
|
||||
require File.expand_path('../helper', __FILE__)
|
||||
|
||||
class RoccoBlockCommentTest < Test::Unit::TestCase
|
||||
def test_basics
|
||||
|
@ -1,4 +1,4 @@
|
||||
require File.dirname(__FILE__) + '/helper'
|
||||
require File.expand_path('../helper', __FILE__)
|
||||
|
||||
class RoccoCommentNormalization < Test::Unit::TestCase
|
||||
def test_normal_comments
|
||||
|
@ -1,4 +1,4 @@
|
||||
require File.dirname(__FILE__) + '/helper'
|
||||
require File.expand_path('../helper', __FILE__)
|
||||
|
||||
class RoccoAutomaticCommentChars < Test::Unit::TestCase
|
||||
def test_basic_detection
|
||||
|
@ -1,4 +1,4 @@
|
||||
require File.dirname(__FILE__) + '/helper'
|
||||
require File.expand_path('../helper', __FILE__)
|
||||
|
||||
class RoccoDescriptiveSectionNamesTests < Test::Unit::TestCase
|
||||
def test_section_name
|
||||
|
@ -1,4 +1,4 @@
|
||||
require File.dirname(__FILE__) + '/helper'
|
||||
require File.expand_path('../helper', __FILE__)
|
||||
|
||||
class RoccoLanguageDetection < Test::Unit::TestCase
|
||||
def test_basic_detection
|
||||
|
@ -1,4 +1,5 @@
|
||||
require File.dirname(__FILE__) + '/helper'
|
||||
# encoding: utf-8
|
||||
require File.expand_path('../helper', __FILE__)
|
||||
|
||||
class RoccoIssueTests < Test::Unit::TestCase
|
||||
def test_issue07_incorrect_parsing_in_c_mode
|
||||
|
@ -1,4 +1,4 @@
|
||||
require File.dirname(__FILE__) + '/helper'
|
||||
require File.expand_path('../helper', __FILE__)
|
||||
|
||||
class RoccoSkippableLines < Test::Unit::TestCase
|
||||
def test_shebang_first_line
|
||||
|
@ -1,4 +1,4 @@
|
||||
require File.dirname(__FILE__) + '/helper'
|
||||
require File.expand_path('../helper', __FILE__)
|
||||
|
||||
class RoccoSourceListTests < Test::Unit::TestCase
|
||||
def test_flat_sourcelist
|
||||
|
Loading…
Reference in New Issue
Block a user