Logo: Relish

  1. Sign up
  2. Sign in

Project: relish

Add a collaborator

  • @gem

The relish collab:add command allows you to add a
collaborator to 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
the following user:
handle email password
matt [email protected] password
Scenarios
Add a collaborator to a project by user handle
When
I run relish collab:add rspec-core:matt
Then
it should pass with:
matt ([email protected]) is now a collaborator on justin/rspec-core
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:
justin/rspec-core
Add a collaborator to a project by user email
When
I run relish collab:add rspec-core:[email protected]
Then
it should pass with:
matt ([email protected]) is now a collaborator on justin/rspec-core
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:
justin/rspec-core
Add a collaborator to a project specified in the options file
Given
I append "project: rspec-core" to ".relish"
When
I run relish collab:add matt
Then
it should pass with:
matt ([email protected]) is now a collaborator on justin/rspec-core
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:
justin/rspec-core
Add a collaborator to a project
Given
a project "foo/bar"
And
"justin" is a collaborator with the publisher "foo"
When
I run relish collab:add foo/bar:matt
Then
it should pass with:
matt ([email protected]) is now a collaborator on foo/bar
Add a collaborator without specifying a project
When
I run relish collab:add matt
Then
it should fail with:
Please specify a project.
Add a collaborator to a project I don't have access to
Given
the following project:
handle privacy
matt/foo public
When
I run relish collab:add matt/foo:justin
Then
it should fail with:
Authorization failed: You are not a collaborator with the publisher 'matt'
Add a collaborator who does not have an account
When
I run relish collab:add rspec-core:i_dont_exist
Then
it should fail with:
User 'i_dont_exist' not found

Last published almost 2 years ago by mattwynne.