diff options
author | Michael Allen <michael@michaelallen.io> | 2015-09-17 14:16:58 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-09-17 14:16:58 +0100 |
commit | eabe1d7e855817714a9e06b59ff468951413f6c6 (patch) | |
tree | e0cb0d4c2b38ea72726dbaaadfb05a440e734047 /test-format-config.sh | |
parent | 1537438e5798502cad17ba10cf19016e400f7c42 (diff) | |
download | git-sonar-eabe1d7e855817714a9e06b59ff468951413f6c6.tar.gz git-sonar-eabe1d7e855817714a9e06b59ff468951413f6c6.zip |
Further testing when not in a repo
Diffstat (limited to 'test-format-config.sh')
-rwxr-xr-x | test-format-config.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test-format-config.sh b/test-format-config.sh index ea76405..5504ebc 100755 --- a/test-format-config.sh +++ b/test-format-config.sh @@ -68,6 +68,22 @@ prepare_test_repo() { } test_all_options_set_config() { + cd_to_tmp "empty" + export GIT_RADAR_FORMAT="%{branch}%{local}%{changes}" + # Don't test remote as in no repo you will get upstream error message + prepare_zsh_colors + unset_colours + + prompt="$(render_prompt)" + assertEquals "$prompt" "" + + export GIT_RADAR_FORMAT="%{remote}" + # Don't test remote as in no repo you will get upstream error message + prepare_zsh_colors + unset_colours + + prompt="$(render_prompt)" + assertEquals "$prompt" "upstream ⚡" prepare_test_repo export GIT_RADAR_FORMAT="%{remote}%{branch}%{local}%{changes}" |