Logo: Relish

  1. Sign in

Project: Vimpack

Uninstall a vim script

As a vimpack user
I want to uninstall a vim script
So its not taking up space

Scenarios
Uninstall a script
Given
an initialized vimpack in "test_vimpack"
And
"rails.vim" is already installed
When
I run vimpack -e development uninstall rails.vim
Then
the output should contain:
 * uninstalling rails.vim
rails.vim uninstalled!
And
a symlink named "test_vimpack/.vimpack/vim/bundle/rails.vim" should not exist
And
a directory named "test_vimpack/.vimpack/scripts/utility/rails.vim" should not exist
And
the exit status should be 0
Uninstall multiple scripts
Given
an initialized vimpack in "test_vimpack"
And
"rails.vim" is already installed
And
"cucumber.zip" is already installed
When
I run vimpack -e development uninstall rails.vim cucumber.zip
Then
the output should contain:
 * uninstalling rails.vim
rails.vim uninstalled!
 * uninstalling cucumber.zip
cucumber.zip uninstalled!
And
a symlink named "test_vimpack/.vimpack/vim/bundle/rails.vim" should not exist
And
a directory named "test_vimpack/.vimpack/scripts/utility/rails.vim" should not exist
And
a symlink named "test_vimpack/.vimpack/vim/bundle/cucumber.zip" should not exist
And
a directory named "test_vimpack/.vimpack/scripts/utility/cucumber.zip" should not exist
And
the exit status should be 0
Try Uninstall a script that is not installed
Given
an initialized vimpack in "test_vimpack"
When
I run vimpack -e development uninstall rails.vim
Then
the output should contain:
Script not found!
And
the exit status should be 1

Last published about 7 years ago by shadowshell.