summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-04 06:11:51 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-05 15:24:49 +0100
commitf1f8800634e04cff6b89fa14b451d1c3121d0a49 (patch)
tree1b58e81b9adcae593a6a78082ce98d4ac03a758a
parent497ca51eb0b23fc322f22276285f8eb96c12e3f7 (diff)
downloadbundler-f1f8800634e04cff6b89fa14b451d1c3121d0a49.tar.gz
Move path helpers to a better place
-rw-r--r--spec/support/helpers.rb8
-rw-r--r--spec/support/path.rb8
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 98c914b0a5..9431f83230 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