use consistent relative require for test/helper

This commit is contained in:
Ryan Tomayko 2011-03-05 04:46:40 -08:00
parent 19506b13db
commit 3f1a8dfef3
11 changed files with 13 additions and 11 deletions

View File

@ -1,4 +1,4 @@
rootdir = File.dirname(File.dirname(__FILE__))
rootdir = File.expand_path('../../lib', __FILE__)
$LOAD_PATH.unshift "#{rootdir}/lib"
require 'test/unit'

View File

@ -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 }

View 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

View File

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path('../helper', __FILE__)
class RoccoBlockCommentTest < Test::Unit::TestCase
def test_basics

View File

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path('../helper', __FILE__)
class RoccoCommentNormalization < Test::Unit::TestCase
def test_normal_comments

View File

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path('../helper', __FILE__)
class RoccoAutomaticCommentChars < Test::Unit::TestCase
def test_basic_detection

View File

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path('../helper', __FILE__)
class RoccoDescriptiveSectionNamesTests < Test::Unit::TestCase
def test_section_name

View File

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path('../helper', __FILE__)
class RoccoLanguageDetection < Test::Unit::TestCase
def test_basic_detection

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path('../helper', __FILE__)
class RoccoSourceListTests < Test::Unit::TestCase
def test_flat_sourcelist