Logo: Relish

  1. Sign in

Project: Vimpack

Manage vimpack -e development git repo

As a vimpack user
I want manage my vimpack -e development git repo
So I can easily replicate my vimpack

Scenarios
Publish vimpack to empty git repo
Given
an initialized vimpack in "test_vimpack"
And
an initialized git repo in "vimpack-repo"
And
I run vimpack -e development git remote add origin /tmp/aruba/vimpack-repo
When
I run vimpack -e development git publish -m '[TEST] testing vimpack'
Then
the exit status should be 0
And
the output should contain:
 * publishing vimpack repo
vimpack repo published!
And
the vimpack git remote "origin" should be "/tmp/aruba/vimpack-repo"
Publish vimpack repo when out of sync
Given
an initialized vimpack in "test_vimpack"
And
"rails.vim" is already installed
And
an existing git repo in "vimpack-repo"
And
an initialized vimpack in "test_vimpack_remoted" from remote "vimpack-repo"
And
"test_vimpack" is my home directory
And
"cucumber.zip" is already installed
And
I run vimpack -e development git publish -m '[CUKE] added cucumber.zip'
And
"test_vimpack_remoted" is my home directory
And
"haml.zip" is already installed
When
I run vimpack -e development git publish -m '[TEST] this is a fail!'
Then
the exit status should be 1
And
the output should contain:
error: local repo out of sync with remote
  use git to sync with something like this:
   vimpack git fetch && vimpack git merge origin/master
Initialize vimpack -e development git remote
Given
an initialized vimpack in "test_vimpack"
And
an initialized git repo in "vimpack-repo"
When
I run vimpack -e development git remote add origin /tmp/aruba/vimpack-repo
Then
the exit status should be 0
And
the output should contain:
 * running git remote add origin /tmp/aruba/vimpack-repo
command complete!
And
the vimpack git remote "origin" should be "/tmp/aruba/vimpack-repo"
Commit vimpack -e development git repo with commit message
Given
an initialized vimpack in "test_vimpack"
And
an initialized git repo in "vimpack-repo"
And
I run vimpack -e development git remote add origin /tmp/aruba/vimpack-repo
When
I run vimpack -e development git add .
And
I run vimpack -e development git commit -m '[TEST] test commit'
Then
the exit status should be 0
And
the output should contain:
 * running git commit -m [TEST] test commit
command complete!
And
the vimpack git commit logs last message should be "[TEST] test commit"
Publish vimpack -e development git repo
Given
an initialized vimpack in "test_vimpack"
And
an initialized git repo in "vimpack-repo"
And
I run vimpack -e development git remote add origin /tmp/aruba/vimpack-repo
And
"rails.vim" is already installed
When
I run vimpack -e development git publish
Then
the exit status should be 0
And
the output should contain:
 * publishing vimpack repo
vimpack repo published!
And
the vimpack git status should be empty

Last published about 7 years ago by shadowshell.