Skip to content

Commit 9df0bb0

Browse files
c0d1ngm0nk3yForestEckhardt
authored andcommittedMay 23, 2022
Tweaked venom test after review feedback
1 parent de7dd27 commit 9df0bb0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed
 

‎venom_test.go

+11-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,13 @@ func testVenom(t *testing.T, context spec.G, it spec.S) {
6969
})
7070

7171
context("WithVars", func() {
72-
it("should add 2 variables", func() {
73-
_, err := venom.WithVar("key1", "value1").WithVar("key2", "value2").Execute("test.yaml")
72+
it("it should preserve order of provided vars", func() {
73+
_, err := venom.WithVar("key1", "value1").
74+
WithVar("key2", "value2").
75+
WithVar("key2", "value2").
76+
WithVar("key3", "value3").
77+
WithVar("key4", "value4").
78+
Execute("test.yaml")
7479
Expect(err).NotTo(HaveOccurred())
7580

7681
Expect(executable.ExecuteCall.Receives.Execution.Args).To(Equal([]string{
@@ -79,6 +84,10 @@ func testVenom(t *testing.T, context spec.G, it spec.S) {
7984
"key1=value1",
8085
"--var",
8186
"key2=value2",
87+
"--var",
88+
"key3=value3",
89+
"--var",
90+
"key4=value4",
8291
"test.yaml",
8392
}))
8493
})

0 commit comments

Comments
 (0)