mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-20 02:52:44 +08:00
Merge pull request #309 from bucaran/reload-and-exit-ok
Make sure to exit with 0 of 1 when reloading the framework
This commit is contained in:
commit
5f92c0446c
|
@ -29,3 +29,6 @@ end
|
|||
|
||||
# Prepend extracted user functions so they have the highest priority.
|
||||
set fish_function_path $user_function_path $fish_function_path
|
||||
|
||||
# Make sure to exit with $status of 1 when reloading the framework.
|
||||
or true
|
||||
|
|
|
@ -69,6 +69,13 @@ function describe_oh_my_fish -d "Oh-My-Fish test spec..."
|
|||
load_oh_my_fish
|
||||
expect $fish_function_path --to-contain $fish_path/themes/l
|
||||
end
|
||||
|
||||
function it_reloads_with_status_of_0 \
|
||||
-d "It should reload the framework with \$status of 0"
|
||||
|
||||
load_oh_my_fish
|
||||
expect $status --to-equal 0
|
||||
end
|
||||
end
|
||||
|
||||
function load_oh_my_fish
|
||||
|
|
Loading…
Reference in New Issue
Block a user