@@ -8,22 +8,26 @@ func TestBuildpackMetadataTomlToApppackServices(t *testing.T) {
88 m := BuildpackMetadataToml {
99 Processes : []BuildpackMetadataTomlProcess {
1010 {
11- Command : []string {"echo" , "ruby web" },
11+ Command : []string {"bash" , "-c" },
12+ Args : []string {"echo \" ruby web\" " },
1213 Type : "web" ,
1314 BuildpackID : "heroku/ruby" ,
1415 },
1516 {
16- Command : []string {"echo" , "release" },
17+ Command : []string {"bash" , "-c" },
18+ Args : []string {"echo release" },
1719 Type : "release" ,
1820 BuildpackID : "heroku/ruby" ,
1921 },
2022 {
21- Command : []string {"echo 'ruby worker'" },
23+ Command : []string {"bash" , "-c" },
24+ Args : []string {"echo 'ruby worker'" },
2225 Type : "worker" ,
2326 BuildpackID : "heroku/ruby" ,
2427 },
2528 {
26- Command : []string {"echo" , "rake" },
29+ Command : []string {"bash" , "-c" },
30+ Args : []string {"echo rake" },
2731 Type : "rake" ,
2832 BuildpackID : "heroku/ruby" ,
2933 },
@@ -34,15 +38,15 @@ func TestBuildpackMetadataTomlToApppackServices(t *testing.T) {
3438 if len (a .Services ) != 2 {
3539 t .Errorf ("expected 2 services, got %d" , len (a .Services ))
3640 }
37- expected := "echo ' ruby web'"
41+ expected := "bash -c 'echo \" ruby web\" '"
3842 if a .Services ["web" ].Command != expected {
3943 t .Errorf ("expected %s, got %s" , expected , a .Services ["web" ].Command )
4044 }
41- expected = "echo 'ruby worker'"
45+ expected = "bash -c ' echo '\" ' \" ' ruby worker' \" ' \" ' '"
4246 if a .Services ["worker" ].Command != expected {
4347 t .Errorf ("expected %s, got %s" , expected , a .Services ["worker" ].Command )
4448 }
45- expected = "echo release"
49+ expected = "bash -c ' echo release' "
4650 if a .Deploy .ReleaseCommand != expected {
4751 t .Errorf ("expected %s, got %s" , expected , a .Deploy .ReleaseCommand )
4852 }
0 commit comments