Logo: Relish

  1. Sign in

Project: Vimpack

Use different environments for vimpack

As a vimpack user
I want to use different environments
Mostly so I can test vimpack

Background Setup test directories
Given
a directory named "test_vimpack/.vim"
And
an empty file named "test_vimpack/.vimrc"
And
"test_vimpack" is my home directory
Scenarios
Default environment should be production and should not alert
When
I run vimpack init
Then
the output should not contain " * using production environment!"
And
the exit status should be 0
When not in production environment we should be alerted
When
I run vimpack --environment development init
Then
the output should contain:
 * using environment :development
And
the output should not contain " * using production environment"
And
the exit status should be 0

Last published about 7 years ago by shadowshell.