expand mm-init path

This commit is contained in:
tdreyno 2009-12-03 15:26:05 -08:00
parent ed5475b7c6
commit 3c9870f66e

View file

@ -6,7 +6,7 @@ end
Given /^generated directory at "([^\"]*)"$/ do |dirname|
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "spec", "fixtures", dirname)
init_cmd = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "mm-init")
init_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "mm-init"))
`cd #{File.dirname(target)} && #{init_cmd} #{File.basename(target)}`
end