mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-20 02:42:44 +08:00
more tests for the fish-spec suite
This commit is contained in:
parent
5e2f42c3b4
commit
5c81cfbffd
|
@ -108,6 +108,24 @@ function describe_fish-spec
|
|||
set -l dot (echo -ne (set_color 00FF7F).)
|
||||
expect "$output" --to-equal $dot$dot
|
||||
end
|
||||
|
||||
function it_only_adds_a_dot_once_for_each_successful_test
|
||||
set -l suite "
|
||||
import plugins/fish-spec
|
||||
|
||||
function describe_suite
|
||||
function it_is_executed
|
||||
expect 'success' --to-equal 'success'
|
||||
expect 'success' --to-equal 'success'
|
||||
end
|
||||
end
|
||||
|
||||
spec.run
|
||||
"
|
||||
set -l output (run_nested_suite $suite)
|
||||
set -l dot (echo -ne (set_color 00FF7F).)
|
||||
expect "$output" --to-equal $dot
|
||||
end
|
||||
end
|
||||
|
||||
function run_nested_suite -a suite
|
||||
|
|
Loading…
Reference in New Issue
Block a user