1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

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| Given /^generated directory at "([^\"]*)"$/ do |dirname|
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "spec", "fixtures", 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)}` `cd #{File.dirname(target)} && #{init_cmd} #{File.basename(target)}`
end end