test: fix template condition for obsfate
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 08 Jun 2017 02:58:54 +0100
changeset 2555 41a1d2a93223
parent 2553 85cabd631a1b
child 2556 d5b97b5dec5b
test: fix template condition for obsfate
tests/test-evolve-templates.t
--- a/tests/test-evolve-templates.t	Wed Jun 07 01:38:48 2017 +0100
+++ b/tests/test-evolve-templates.t	Thu Jun 08 02:58:54 2017 +0100
@@ -17,7 +17,7 @@
   >     {if(precursors, "\n  semi-colon: {join(precursors, "; ")}")}\
   >     {if(successors, "\n  Successors: {successors}")}\
   >     {if(successors, "\n  semi-colon: {join(successors, "; ")}")}\
-  >     {if(successors, "\n  Fate: {obsfate_quiet}")}\n'
+  >     {if(obsfate_quiet, "\n  Fate: {obsfate_quiet}")}\n'
   > EOF
 
 Test templates on amended commit
@@ -109,7 +109,7 @@
   |      semi-colon: [d004c8f274b9]
   |      Fate: superseed as d004c8f274b9
   | x  f137d23bb3e1
-  | |
+  | |    Fate: pruned
   | x  471f378eab4c
   |/     Successors: [a468dc9b3633]
   |      semi-colon: [a468dc9b3633]
@@ -135,7 +135,7 @@
   |      semi-colon: [d004c8f274b9]
   |      Fate: superseed as d004c8f274b9
   | x  f137d23bb3e1
-  | |
+  | |    Fate: pruned
   | x  471f378eab4c
   |/     Successors: [a468dc9b3633]
   |      semi-colon: [a468dc9b3633]