mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-22 12:16:09 +08:00
add fish-spec
This commit is contained in:
parent
5bebbc641c
commit
849fcbecc8
30
plugins/better-alias/balias.spec.fish
Normal file
30
plugins/better-alias/balias.spec.fish
Normal file
|
@ -0,0 +1,30 @@
|
|||
import plugins/fish-spec
|
||||
import plugins/balias
|
||||
|
||||
function describe_library -d "better-alias"
|
||||
|
||||
function after_all
|
||||
functions -e changedir
|
||||
end
|
||||
|
||||
function it_doesnt_fail
|
||||
balias changedir cd
|
||||
expect test $status --to-be-true
|
||||
end
|
||||
|
||||
function it_defines_an_alias
|
||||
functions changedir
|
||||
expect test $status --to-be-true
|
||||
end
|
||||
|
||||
function you_can_use_the_alias
|
||||
mkdir testdir
|
||||
changedir testdir
|
||||
expect test $status --to-be-true
|
||||
cd ..
|
||||
rmdir testdir
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
spec.run $argv
|
Loading…
Reference in New Issue
Block a user