summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_user.test.fish
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2020-07-17 09:19:06 -0300
committerRoger Gonzalez <roger@rogs.me>2020-07-17 09:19:06 -0300
commit9fe9310ccf4971f0d1976f9bdaafd04a68ea314b (patch)
treeff1d5d677d5b3c33ac7eb6252029f2a9d165d9b3 /.config/fisher/github.com/matchai/spacefish/tests/__sf_section_user.test.fish
parent743caecfc68bb6d28f8de2e80bce671e42601c6a (diff)
Deleted fisher stuff
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/tests/__sf_section_user.test.fish')
-rw-r--r--.config/fisher/github.com/matchai/spacefish/tests/__sf_section_user.test.fish95
1 files changed, 0 insertions, 95 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_user.test.fish b/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_user.test.fish
deleted file mode 100644
index 489983de..00000000
--- a/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_user.test.fish
+++ /dev/null
@@ -1,95 +0,0 @@
-source $DIRNAME/spacefish_test_setup.fish
-
-function setup
- spacefish_test_setup
-end
-
-function teardown
- set USER $LOGNAME
-end
-
-test "Displays user when different from logname"
- (
- set USER spacefishUser
-
- set_color --bold
- echo -n "with "
- set_color normal
- set_color --bold yellow
- echo -n "spacefishUser"
- set_color normal
- set_color --bold
- echo -n " "
- set_color normal
- ) = (__sf_section_user)
-end
-
-test "Displays user when UID = 0"
- (
- set UID 0
-
- set_color --bold
- echo -n "with "
- set_color normal
- set_color --bold yellow
- echo -n $USER
- set_color normal
- set_color --bold
- echo -n " "
- set_color normal
- ) = (__sf_section_user)
-end
-
-test "Displays user when there's an SSH connection"
- (
- set SSH_CONNECTION "192.168.0.100 12345 192.168.0.101 22"
-
- set_color --bold
- echo -n "with "
- set_color normal
- set_color --bold yellow
- echo -n $USER
- set_color normal
- set_color --bold
- echo -n " "
- set_color normal
- ) = (__sf_section_user)
-end
-
-test "Changes user color when logged in as root"
- (
- set USER root
-
- set_color --bold
- echo -n "with "
- set_color normal
- set_color --bold red
- echo -n root
- set_color normal
- set_color --bold
- echo -n " "
- set_color normal
- ) = (__sf_section_user)
-end
-
-test "Displays user when SPACEFISH_USER_SHOW is set to \"always\""
- (
- set SPACEFISH_USER_SHOW always
-
- set_color --bold
- echo -n "with "
- set_color normal
- set_color --bold yellow
- echo -n $USER
- set_color normal
- set_color --bold
- echo -n " "
- set_color normal
- ) = (__sf_section_user)
-end
-
-test "Doesn't display user when SPACEFISH_USER_SHOW is set to \"false\""
- (
- set SPACEFISH_USER_SHOW false
- ) = (__sf_section_user)
-end