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:
Bruno 2015-01-13 17:41:00 -02:00
commit 5f92c0446c
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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