Logo: Relish

  1. Sign up
  2. Sign in

Project: relish

Remove a version

  • @gem

The relish versions:remove command allows you to remove a
version from a project.

Background
Given
I have authenticated my user account "justin" via the console
And
I am a publisher
And
I have a project named "rspec-core"
And
project "rspec-core" has a version named "2.0"
Scenarios
Remove a version from a project successfully
When
I run relish versions:remove justin/rspec-core:2.0
Then
it should pass with:
Version '2.0' removed from justin/rspec-core
And
I sign in as "justin/password"
And
I go to justin's publisher page
Then
I should not see "2.0"
Forget to pass a version name
Given
I append "project: rspec-core" to ".relish"
When
I run relish versions:remove
Then
it should fail with:
Please specify a version name. Run 'relish help' for usage information.
Remove a version from a project that I don't have access to
Given
a project "matt/belly"
And
project "belly" has a version named "2.0"
When
I run relish versions:remove matt/belly:2.0
Then
it should fail with:
Authorization failed
Remove a version from a project specified in the options file
Given
I append "project: rspec-core" to ".relish"
When
I run relish versions:remove 2.0
Then
it should pass with:
Version '2.0' removed from justin/rspec-core

Last published 5 months ago by mattwynne.