diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-04 06:11:51 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-04 22:17:52 +0100 |
commit | 2388e3549cb9e20dc996bb81a34b2c9f50fca322 (patch) | |
tree | a9ef4ed8f7bd6f3f409665f29c09505ea786cbbd | |
parent | 1d1a521ff7363d85ed65a5c48d30b3351ece5431 (diff) | |
download | bundler-2388e3549cb9e20dc996bb81a34b2c9f50fca322.tar.gz |
Move path helpers to a better place
-rw-r--r-- | spec/support/helpers.rb | 8 | ||||
-rw-r--r-- | spec/support/path.rb | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index 70caef1754..3ebedf1c1f 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -59,14 +59,6 @@ module Spec last_command.exitstatus end - def in_app_root(&blk) - Dir.chdir(bundled_app, &blk) - end - - def in_app_root2(&blk) - Dir.chdir(bundled_app2, &blk) - end - def run(cmd, *args) opts = args.last.is_a?(Hash) ? args.pop : {} groups = args.map(&:inspect).join(", ") diff --git a/spec/support/path.rb b/spec/support/path.rb index 645da52c97..69a4720512 100644 --- a/spec/support/path.rb +++ b/spec/support/path.rb @@ -180,6 +180,14 @@ module Spec end end + def in_app_root(&blk) + Dir.chdir(bundled_app, &blk) + end + + def in_app_root2(&blk) + Dir.chdir(bundled_app2, &blk) + end + extend self private |