File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def install
56
56
57
57
test do
58
58
# Create a fake python version and executable.
59
- pyenv_root = Pathname ( shell_output ( "pyenv root" ) . strip )
59
+ pyenv_root = Pathname ( shell_output ( "#{ bin } / pyenv root" ) . strip )
60
60
python_bin = pyenv_root /"versions/1.2.3/bin"
61
61
foo_script = python_bin /"foo"
62
62
foo_script . write "echo hello"
@@ -65,13 +65,13 @@ def install
65
65
# Test versions.
66
66
versions = shell_output ( "eval \" $(#{ bin } /pyenv init --path)\" " \
67
67
"&& eval \" $(#{ bin } /pyenv init -)\" " \
68
- "&& pyenv versions" ) . split ( "\n " )
68
+ "&& #{ bin } / pyenv versions" ) . split ( "\n " )
69
69
assert_equal 2 , versions . length
70
70
assert_match ( /\* system/ , versions [ 0 ] )
71
71
assert_equal ( " 1.2.3" , versions [ 1 ] )
72
72
73
73
# Test rehash.
74
- system "pyenv" , "rehash"
74
+ system bin / "pyenv" , "rehash"
75
75
refute_match "Cellar" , ( pyenv_root /"shims/foo" ) . read
76
76
assert_equal "hello" , shell_output ( "eval \" $(#{ bin } /pyenv init --path)\" " \
77
77
"&& eval \" $(#{ bin } /pyenv init -)\" " \
You can’t perform that action at this time.
0 commit comments