diff --git a/test.rb b/tests/examples.rb similarity index 76% rename from test.rb rename to tests/examples.rb index d93278a..31fce10 100755 --- a/test.rb +++ b/tests/examples.rb @@ -3,10 +3,12 @@ require 'open3' -EXE = File.expand_path('exe/repubmark', __dir__).freeze -EXAMPLES = File.expand_path('examples', __dir__).freeze -EXAMPLES_GLOB = File.expand_path('examples/*.repub', __dir__).freeze -CONFIG = File.expand_path('examples/config.yml', __dir__).freeze +ROOT = File.expand_path('..', __dir__).freeze + +EXE = File.expand_path('exe/repubmark', ROOT).freeze +EXAMPLES = File.expand_path('examples', ROOT).freeze +EXAMPLES_GLOB = File.expand_path('examples/*.repub', ROOT).freeze +CONFIG = File.expand_path('examples/config.yml', ROOT).freeze PROFILES = [ %w[summary_plain summary.txt],