From 9451c221e1264f4802c0678849fce79664be5d5b Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Thu, 29 Dec 2016 07:52:49 +0200
Subject: [PATCH] - Fix test on Travis CI.

---
 tests.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests.sh b/tests.sh
index fce6dc9..8596791 100755
--- a/tests.sh
+++ b/tests.sh
@@ -9,9 +9,10 @@ export name='John'
 test "$(echo 'Hello {{ name if name is defined else 'world' }}.' | template)" = "Hello John."
 
 echo Testing arguments and reading/ writing to file.
-echo '{{ USER }}' > "$infile"
+echo '{{ name }}' > "$infile"
+export name='John'
 template --output "$outfile" "$infile"
-test "$(cat $outfile)" = "$USER"
+test "$(cat $outfile)" = "$name"
 
 echo Testing JSON parsing.
 export json='{"a": 1, "b": 2}'
-- 
GitLab