Logo: Relish

  1. Sign in

Project: relish

Add a version

  • @gem

The relish versions:add command allows you to add
specific versions of a project.

Background
Given
I have authenticated my user account "justin/password" via the console
And
I am a publisher
And
I have a project named "rspec-core"
Scenarios
Add a project version successfully
When
I run relish versions:add rspec-core:2.0
Then
it should pass with:
Version '2.0' added to justin/rspec-core
And
I sign in as "justin/password"
And
I go to justin's publisher page
Then
I should see "2.0"
Add a project version that already exists
Given
project "rspec-core" has a version named "2.0"
When
I run relish versions:add justin/rspec-core:2.0
Then
it should fail with:
Validation failed: Name has already been taken
Add a version to a project specified in the options file
Given
I append "project: rspec-core" to ".relish"
When
I run relish versions:add 2.0
Then
it should pass with:
Version '2.0' added to justin/rspec-core
Add a version to a project that I don't have access to
Given
a project "matt/belly"
When
I run relish versions:add matt/belly:2.0
Then
it should fail with:
Authorization failed: You are not a collaborator on the project 'matt/belly'

Last published over 3 years ago by mattwynne.