diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-01-02 18:59:07 +0100 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-01-02 18:59:07 +0100 |
commit | d03e022b8816fd4193ff7a0a34e35573e8114e7f (patch) | |
tree | 1896a5c90f0eb99ecaa5fc09304cee7174657943 /lib/vendor/excon/spec/helpers | |
parent | 3fe9cea03a6384fd8f57f10e172c134ed5c0552d (diff) | |
download | gitlab-shell-http-excon.tar.gz |
WIP Use excon for HTTP requestshttp-excon
Diffstat (limited to 'lib/vendor/excon/spec/helpers')
-rw-r--r-- | lib/vendor/excon/spec/helpers/file_path_helpers.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/vendor/excon/spec/helpers/file_path_helpers.rb b/lib/vendor/excon/spec/helpers/file_path_helpers.rb new file mode 100644 index 0000000..2424ec6 --- /dev/null +++ b/lib/vendor/excon/spec/helpers/file_path_helpers.rb @@ -0,0 +1,22 @@ +# Todo: s/tests/specs when migration is complete +def get_abs_path(*parts) + File.join(File.expand_path('../../..', __FILE__), 'tests', *parts) +end + +def data_path(*parts) + get_abs_path('data', *parts) +end + +def rackup_path(*parts) + get_abs_path('rackups', *parts) +end + +def webrick_path(*parts) rackup_path(*parts); end + +def unicorn_path(*parts) rackup_path(*parts); end + +def puma_path(*parts) rackup_path(*parts); end + +def exec_path(*parts) + get_abs_path('servers', *parts) +end |