summaryrefslogtreecommitdiff
path: root/spec/functional/shell_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2012-11-21 09:03:29 -0800
committerdanielsdeleo <dan@opscode.com>2012-11-21 09:03:29 -0800
commitde6440999fc365a762b82865d85a349c83cda8f5 (patch)
tree6a9e2cbf737c7b37c122df575064345efc671993 /spec/functional/shell_spec.rb
parent70e209c813705e5d45706a88a4e76f470708b452 (diff)
downloadchef-de6440999fc365a762b82865d85a349c83cda8f5.tar.gz
use full path to chef-shell in functional test
Diffstat (limited to 'spec/functional/shell_spec.rb')
-rw-r--r--spec/functional/shell_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/functional/shell_spec.rb b/spec/functional/shell_spec.rb
index 956acc188b..8553c53ece 100644
--- a/spec/functional/shell_spec.rb
+++ b/spec/functional/shell_spec.rb
@@ -17,6 +17,7 @@
#
require 'spec_helper'
+require 'chef/version'
require 'pty'
describe Chef::Shell do
@@ -27,7 +28,8 @@ describe Chef::Shell do
describe "smoke tests", :unix_only => true do
def run_chef_shell_with(options)
- reader, writer, pid = PTY.spawn("bin/chef-shell #{options}")
+ path_to_chef_shell = File.expand_path("../../../bin/chef-shell", __FILE__)
+ reader, writer, pid = PTY.spawn("#{path_to_chef_shell} #{options}")
yield writer if block_given?
writer.puts("exit")
output = reader.read