Logo: Relish

  1. Sign in

Project: Vimpack

Initialize vimpack

As a vimpack user
I want to initialize vimpack
So I can have a sane way to manage vim scripts

Scenarios
Initialize vimpack in an existing vim environment
Given
a directory named "test_vimpack/.vim"
And
an empty file named "test_vimpack/.vimrc"
And
"test_vimpack" is my home directory
When
I run vimpack -e development init
Then
a directory named "test_vimpack/.vim.before_vimpack" should exist
And
a file named "test_vimpack/.vimrc.before_vimpack" should exist
And
the output should contain " * initializing vimpack repo"
And
a directory named "test_vimpack/.vimpack" should exist and be a git repo
And
a directory named "test_vimpack/.vimpack/vim" should exist
And
a directory named "test_vimpack/.vimpack/vim/autoload" should exist
And
a directory named "test_vimpack/.vimpack/vim/bundle" should exist
And
a directory named "test_vimpack/.vimpack/scripts" should exist
And
a symlink named "test_vimpack/.vim" should exist and link to "test_vimpack/.vimpack/vim"
And
a directory named "test_vimpack/.vimpack/scripts/utility/pathogen.vim" should exist and be a git submodule of "test_vimpack/.vimpack"
And
a symlink named "test_vimpack/.vimpack/vim/autoload/pathogen.vim" should exist and link to "test_vimpack/.vimpack/scripts/utility/pathogen.vim/plugin/pathogen.vim"
And
a symlink named "test_vimpack/.vimrc" should exist and link to "test_vimpack/.vimpack/vimrc"
And
the output should contain "vimpack initialized!"
And
the exit status should be 0
Initialize vimpack from git repo
Given
a directory named "test_vimpack/.vim"
And
an empty file named "test_vimpack/.vimrc"
And
"test_vimpack" is my home directory
When
I run vimpack -e development init [email protected]:bramswenson/vimpack-repo-test.git
Then
a directory named "test_vimpack/.vim.before_vimpack" should exist
And
a file named "test_vimpack/.vimrc.before_vimpack" should exist
And
the output should contain " * initializing vimpack repo from [email protected]:bramswenson/vimpack-repo-test.git"
And
a directory named "test_vimpack/.vimpack" should exist and be a git repo
And
a directory named "test_vimpack/.vimpack/vim" should exist
And
a directory named "test_vimpack/.vimpack/vim/autoload" should exist
And
a directory named "test_vimpack/.vimpack/vim/bundle" should exist
And
a directory named "test_vimpack/.vimpack/scripts" should exist
And
a symlink named "test_vimpack/.vim" should exist and link to "test_vimpack/.vimpack/vim"
And
a directory named "test_vimpack/.vimpack/scripts/utility/pathogen.vim" should exist and be a git submodule of "test_vimpack/.vimpack"
And
a symlink named "test_vimpack/.vimpack/vim/autoload/pathogen.vim" should exist and link to "test_vimpack/.vimpack/scripts/utility/pathogen.vim/plugin/pathogen.vim"
And
a symlink named "test_vimpack/.vimrc" should exist and link to "test_vimpack/.vimpack/vimrc"
And
the output should contain "vimpack initialized!"
And
the vimpack git remote "origin" should be "[email protected]:bramswenson/vimpack-repo-test.git"
And
the exit status should be 0

Last published about 7 years ago by shadowshell.