Logo: Relish

  1. Sign in

Project: relish

Add a Project

  • @gem

The relish projects:add command allows you to add a project.

Background
Given
I have authenticated my user account "matt/password" via the console
And
I am a publisher
Scenarios
Add a project via handle
When
I run relish projects:add rspec-core
Then
it should pass with:
matt/rspec-core project added
And
I sign in as "matt/password"
And
I go to my dashboard projects page
Then
I should see the following projects on my dashboard:
matt/rspec-core
Add a private project via handle
When
I run relish projects:add rspec-core:private
Then
it should pass with:
matt/rspec-core project added (private)
Add a project via user and project handle (:user_handle/:handle)
When
I run relish projects:add matt/rspec-core
Then
it should pass with:
matt/rspec-core project added
Add a project via publisher and project handle (:publisher/:project)
Given
I am a collaborator with a publisher "rspec"
When
I run relish projects:add rspec/rspec-core
Then
it should pass with:
rspec/rspec-core project added
Add a project to a publisher I'm not a collborator with
Given
a publisher "rspec"
When
I run relish projects:add rspec/rspec-core
Then
it should fail with:
Authorization failed
Add a project to a publisher that doesn't exist
When
I run relish projects:add foo/rspec-core
Then
it should fail with:
No publisher 'foo' was found.
Add a project to a user that is not me
Given
a user with the handle "justin"
When
I run relish projects:add justin/rspec-core
Then
it should fail with:
No publisher 'justin' was found.
Add a project via invalid handle
When
I run relish projects:add invalid_project
Then
it should fail with:
Validation failed: Handle may only contain alphanumeric characters or dashes and cannot begin with a dash
Add a project without a handle
When
I run relish projects:add
Then
it should fail with:
Please specify a project.

Last published over 3 years ago by mattwynne.