Skip to content

Commit 30a8f03

Browse files
Reuse bundle path in command tests. (#56)
1 parent e6c20b8 commit 30a8f03

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/.context
33
/.bundle
44
/pkg
5+
/vendor
56
/gems.locked
67
/.covered.db
78
/external

test/utopia/command.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ def group_rw(path)
2727

2828
REQUIRED_GEMS = ["bake", "bake-test", "sus", "covered", "rack-test", "sus-fixtures-async-http", "falcon", "net-smtp", "benchmark-http", "protocol-rack"]
2929

30+
def bundle_path
31+
File.join(utopia_path, "vendor/bundle")
32+
end
33+
3034
def install_packages(dir)
3135
gems_path = File.join(dir, "gems.rb")
3236
File.open(gems_path, "w") do |file|
@@ -37,7 +41,7 @@ def install_packages(dir)
3741
end
3842
end
3943

40-
system("bundle", "config", "set", "path", "vendor/bundle", chdir: dir)
44+
system("bundle", "config", "set", "path", bundle_path, chdir: dir)
4145
system("bundle", "install", chdir: dir)
4246
end
4347

0 commit comments

Comments
 (0)