diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-01-03 19:05:32 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-01-06 16:42:36 -0700 |
| commit | 6cb5106eff62be07425a882ab28cc8faf7a364cd (patch) | |
| tree | cd96f7dbfd4d0c873729bbb81439b67de8a3b535 /test/paths_test.rb | |
| parent | 67ec4dc95522e4e6ca4f70009fadc9cbe71b4446 (diff) | |
use require_relative instead of modifying $LOAD_PATH
- use require_relative in place of require when it relied on $LOAD_PATH manipulation
- configure bin scripts to work with require_relative
- rename ROOT_PATH to ROOT_DIR
- rename DATA_PATH to DATA_DIR
- rename STYLESHEETS_DATA_PATH to STYLESHEETS_DIR
- define LIB_DIR
- simplify test helper require and setup
- add bindir helper to test suite
- remove unneeded constants in test helper
- reorder autoload statements
- require version directly instead of autoloading
Diffstat (limited to 'test/paths_test.rb')
| -rw-r--r-- | test/paths_test.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/paths_test.rb b/test/paths_test.rb index 1340dc76..8dae5696 100644 --- a/test/paths_test.rb +++ b/test/paths_test.rb @@ -1,7 +1,4 @@ -unless defined? ASCIIDOCTOR_PROJECT_DIR - $: << File.dirname(__FILE__); $:.uniq! - require 'test_helper' -end +require_relative 'test_helper' context 'Path Resolver' do context 'Web Paths' do |
