aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/installer_test_case.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/installer_test_case.rb')
-rw-r--r--lib/rubygems/installer_test_case.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/installer_test_case.rb b/lib/rubygems/installer_test_case.rb
index 6fdc2d6337..1c16959f5f 100644
--- a/lib/rubygems/installer_test_case.rb
+++ b/lib/rubygems/installer_test_case.rb
@@ -120,9 +120,9 @@ class Gem::InstallerTestCase < Gem::TestCase
# The executable is also written to the bin dir in @tmpdir and the installed
# gem directory for +spec+.
- def util_make_exec(spec = @spec, shebang = "#!/usr/bin/ruby")
+ def util_make_exec(spec = @spec, shebang = "#!/usr/bin/ruby", bindir = "bin")
spec.executables = %w[executable]
- spec.files << 'bin/executable'
+ spec.bindir = bindir
exec_path = spec.bin_file "executable"
write_file exec_path do |io|