To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorAdd a collaborator
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
- Add a collaborator to a project by user email
- Add a collaborator to a project specified in the options file
- Add a collaborator to a project
- Add a collaborator without specifying a project
- Add a collaborator to a project I don't have access to
- Add a collaborator who does not have an account
- 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 over 7 years ago by mattwynne.