@@ -29,57 +29,6 @@ var _ = Describe("UI", func() {
2929 ui .Err = NewBuffer ()
3030 })
3131
32- Describe ("DisplayKeyValueTableForV3App" , func () {
33- Context ("when the app is running properly" , func () {
34- BeforeEach (func () {
35- ui .DisplayKeyValueTableForV3App ([][]string {
36- {"name:" , "dora" },
37- {"requested state:" , "started" },
38- {"processes:" , "web:1/1,worker:2/2" }},
39- []string {},
40- )
41- })
42-
43- It ("displays a table with the no change in coloring" , func () {
44- Expect (ui .Out ).To (Say ("name: dora\n " ))
45- Expect (ui .Out ).To (Say ("requested state: started\n " ))
46- Expect (ui .Out ).To (Say ("processes: web:1/1,worker:2/2\n " ))
47- })
48- })
49-
50- Context ("when the app is stopped and has 0 instances" , func () {
51- BeforeEach (func () {
52- ui .DisplayKeyValueTableForV3App ([][]string {
53- {"name:" , "dora" },
54- {"requested state:" , "stopped" },
55- {"processes:" , "web:1/1,worker:2/2" }},
56- []string {})
57- })
58-
59- It ("displays a table with the no change in coloring" , func () {
60- Expect (ui .Out ).To (Say ("name: dora\n " ))
61- Expect (ui .Out ).To (Say ("requested state: stopped\n " ))
62- Expect (ui .Out ).To (Say ("processes: web:1/1,worker:2/2\n " ))
63- })
64- })
65-
66- Context ("when the app is started and has 1 crashed process" , func () {
67- BeforeEach (func () {
68- ui .DisplayKeyValueTableForV3App ([][]string {
69- {"name:" , "dora" },
70- {"requested state:" , "started" },
71- {"processes:" , "web:0/1,worker:2/2" }},
72- []string {"web" })
73- })
74-
75- It ("displays a table with requested state and crashed instance count in red" , func () {
76- Expect (ui .Out ).To (Say ("name: dora\n " ))
77- Expect (ui .Out ).To (Say ("requested state: \x1b \\ [31;1mstarted\x1b \\ [0m\n " ))
78- Expect (ui .Out ).To (Say ("processes: \x1b \\ [31;1mweb:0/1\x1b \\ [0m,worker:2/2\n " ))
79- })
80- })
81- })
82-
8332 Describe ("DisplayInstancesTableForApp" , func () {
8433 Context ("in english" , func () {
8534 It ("displays a table with red coloring for down and crashed" , func () {
0 commit comments