about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-04-04T12·38+0200
committerVincent Ambo <tazjin@gmail.com>2017-04-04T18·06+0200
commit7286751db75187533c0c83dbd46162c14ca935a4 (patch)
treeecce64a780e734745673f50a7c3a5eca923c3ca2
parent746e733cbbc8aef939eb2c3a695d5c41bbb4cb5a (diff)
fix test: Assert variable override order
-rw-r--r--context/context_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/context/context_test.go b/context/context_test.go
index 8da30c9a89b0..c5b5e7f12611 100644
--- a/context/context_test.go
+++ b/context/context_test.go
@@ -153,4 +153,9 @@ func TestDefaultValuesLoading(t *testing.T) {
 		t.Errorf("Default values not loaded from YAML file")
 		t.Fail()
 	}
+
+	if rs.Values["override"] != "notAtAll" {
+		t.Error("Default values should not override other values")
+		t.Fail()
+	}
 }