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:
parent
ed5475b7c6
commit
3c9870f66e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue