@@ -14,37 +14,34 @@ var _ = Describe("Apps", func() {
1414 })
1515
1616 It ("can't get app info" , func () {
17- output , err := execute ("deis info -a %s" , app1Name )
18- Expect (err ).To (HaveOccurred ())
19- Expect (output ).To (ContainSubstring ("NOT FOUND" ))
17+ Expect (execute ("deis info -a %s" , app1Name )).To (SucceedWithOutput (ContainSubstring ("NOT FOUND" )))
2018 })
2119
2220 It ("can't get app logs" , func () {
23- output , err := execute ("deis logs -a %s" , app1Name )
24- Expect (err ).To (HaveOccurred ())
25- Expect (output ).To (ContainSubstring ("NOT FOUND" ))
21+ out := execute ("deis logs -a %s" , app1Name )
22+ Expect (out . err ).To (HaveOccurred ())
23+ Expect (out . str ).To (ContainSubstring ("NOT FOUND" ))
2624 })
2725
2826 // TODO: this currently returns "Error: json: cannot unmarshal object into Go value of type []interface {}"
2927 XIt ("can't run a command in the app environment" , func () {
30- output , err := execute ("deis apps:run echo Hello, 世界" )
31- Expect (err ).To (HaveOccurred ())
32- Expect (output ).To (ContainSubstring ("NOT FOUND" ))
28+ out := execute ("deis apps:run echo Hello, 世界" )
29+ Expect (out . err ).To (HaveOccurred ())
30+ Expect (out . str ).To (ContainSubstring ("NOT FOUND" ))
3331 })
3432
3533 It ("can create an app" , func () {
36- output , err := execute ("deis apps:create %s" , app1Name )
37- Expect (err ).NotTo (HaveOccurred ())
38- Expect (output ).To (SatisfyAll (
34+ Expect (execute ("deis apps:create %s" , app1Name )).To (SucceedWithOutput (
3935 ContainSubstring ("Creating Application... done, created %s" , app1Name ),
4036 ContainSubstring ("Git remote deis added" ),
41- ContainSubstring ("remote available at " )))
42- output , err = execute ( "deis apps:destroy --confirm=%s" , app1Name )
43- Expect ( err ). NotTo ( HaveOccurred ())
44- Expect (output ) .To (SatisfyAll (
37+ ContainSubstring ("remote available at " ),
38+ ) )
39+
40+ Expect (execute ( "deis apps:destroy --confirm=%s" , app1Name )) .To (SucceedWithOutput (
4541 ContainSubstring ("Destroying %s..." , app1Name ),
4642 ContainSubstring ("done in " ),
47- ContainSubstring ("Git remote deis removed" )))
43+ ContainSubstring ("Git remote deis removed" ),
44+ ))
4845 })
4946
5047 It ("can create an app with no git remote" , func () {
0 commit comments