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"
|
$LOAD_PATH.unshift "#{rootdir}/lib"
|
||||||
|
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
|
require File.expand_path('../helper', __FILE__)
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
Dir["#{File.dirname(__FILE__)}/test_*.rb"].
|
Dir[File.expand_path('../test_*.rb', __FILE__)].
|
||||||
each { |file| require 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
|
class RoccoBasicTests < Test::Unit::TestCase
|
||||||
def test_rocco_exists_and_is_instancable
|
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
|
class RoccoBlockCommentTest < Test::Unit::TestCase
|
||||||
def test_basics
|
def test_basics
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require File.dirname(__FILE__) + '/helper'
|
require File.expand_path('../helper', __FILE__)
|
||||||
|
|
||||||
class RoccoCommentNormalization < Test::Unit::TestCase
|
class RoccoCommentNormalization < Test::Unit::TestCase
|
||||||
def test_normal_comments
|
def test_normal_comments
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require File.dirname(__FILE__) + '/helper'
|
require File.expand_path('../helper', __FILE__)
|
||||||
|
|
||||||
class RoccoAutomaticCommentChars < Test::Unit::TestCase
|
class RoccoAutomaticCommentChars < Test::Unit::TestCase
|
||||||
def test_basic_detection
|
def test_basic_detection
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require File.dirname(__FILE__) + '/helper'
|
require File.expand_path('../helper', __FILE__)
|
||||||
|
|
||||||
class RoccoDescriptiveSectionNamesTests < Test::Unit::TestCase
|
class RoccoDescriptiveSectionNamesTests < Test::Unit::TestCase
|
||||||
def test_section_name
|
def test_section_name
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require File.dirname(__FILE__) + '/helper'
|
require File.expand_path('../helper', __FILE__)
|
||||||
|
|
||||||
class RoccoLanguageDetection < Test::Unit::TestCase
|
class RoccoLanguageDetection < Test::Unit::TestCase
|
||||||
def test_basic_detection
|
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
|
class RoccoIssueTests < Test::Unit::TestCase
|
||||||
def test_issue07_incorrect_parsing_in_c_mode
|
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
|
class RoccoSkippableLines < Test::Unit::TestCase
|
||||||
def test_shebang_first_line
|
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
|
class RoccoSourceListTests < Test::Unit::TestCase
|
||||||
def test_flat_sourcelist
|
def test_flat_sourcelist
|
||||||
|
Loading…
Reference in New Issue
Block a user