Skip to content

Commit

Permalink
fix CI by declaring $pure_symbol_horizontal_bar
Browse files Browse the repository at this point in the history
  • Loading branch information
edouard-lopez committed Jan 8, 2019
1 parent 97c9c4d commit f3a5d12
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/fish_title.test.fish
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ end

test "fish_title: contains current directory and previous command"
(
set pure_symbol_horizontal_bar ''

fish_title 'last-command'
) = "directory: last-command — "
end
Expand All @@ -21,20 +23,25 @@ end

test "fish_title: contains current path without a previous command"
(
set pure_symbol_horizontal_bar ''

fish_title
) = "/tmp/current/directory — "
end

test "fish_title: support fish 2.x" # how to test $_ ?
(
set pure_symbol_horizontal_bar ''

fish_title
) = "/tmp/current/directory — "
end

test "fish_title: support fish 3.x"
(
function status; echo 'fishtape'; end # mock: status current-command

function status; echo 'fishtape'; end # mock: status current-command
set pure_symbol_horizontal_bar ''

fish_title
) = "/tmp/current/directory — fishtape"
end
Expand Down

0 comments on commit f3a5d12

Please sign in to comment.