Tests: reorganization

This commit is contained in:
Marco Hinz 2016-02-02 12:25:39 +01:00
parent 709572ccb2
commit c742c3a752
5 changed files with 29 additions and 22 deletions

View file

@ -9,8 +9,8 @@ This plugin provides a start screen for Vim and Neovim.
It provides **dynamically created headers or footers** and uses configurable
lists to show **recently used or bookmarked files** and **persistent sessions**.
All of this can be accessed in a **simple to use menu** that allows to open
single or multiple entries.
All of this can be accessed in a **simple to use menu** that even allows to
**open multiple entries** at once.
Startify doesn't get in your way and works out-of-the-box, but provides many
options for fine-grained customization.

View file

@ -1,7 +1,7 @@
Before (check :Startify):
Before:
Startify
Execute (check options):
Execute (Check set options):
AssertEqual 'startify', &filetype
AssertEqual 'wipe', &bufhidden
AssertEqual 'nofile', &buftype
@ -11,20 +11,3 @@ Execute (check options):
AssertEqual 0, &list
AssertEqual 0, &number
AssertEqual 0, &swapfile
Do (open new buffer in insert mode via 'i'):
ifoo
Expect (only "foo"):
foo
Do (open new buffer in normal mode via 'e'):
eibar
Expect (only "bar"):
bar
Given:
quux
Do (quit startify buffer via 'q'):
q
Expect:
quux

View file

@ -0,0 +1,19 @@
Before:
Startify
Do (Open new buffer in insert "foo"):
ifoo
Expect (Buffer contains only "foo"):
foo
Do (Open new buffer in normal mode and insert "bar"):
eibar
Expect (Buffer contains only "bar"):
bar
Given (Buffer that contains only "quux"):
quux
Do (Quit Startify buffer via 'q'):
q
Expect (Buffer before :Startify was called):
quux

View file

@ -21,4 +21,4 @@ cp viminfo viminfo.tmp
trap "{ rm viminfo.tmp; }" EXIT
echo '(Be patient.. testing can take a while.)'
HOME=/dev/null vim -XNu vimrc -i viminfo.tmp -c 'Vader! *'
HOME=/dev/null vim -XNu vimrc -i viminfo.tmp -c 'Vader! vader.vader'

5
test/vader.vader Normal file
View file

@ -0,0 +1,5 @@
Execute (:Startify command available):
Assert 2 == exists(':Startify')
Include: feature/buffer.vader
Include: feature/mappings.vader