Logo: Relish

  1. Sign up
  2. Sign in

Project: relish

Set the visibility of a project

  • @gem

The relish projects:visibility command allows you to set
whether a project is public or private.

Background
Given
I have authenticated my user account "justin/password" via the console
And
I am a publisher
Scenarios
Change a project's visibility from public to private
Given
I have a project named "rspec-core"
And
the visibility of project "rspec-core" is public
When
I run relish projects:visibility rspec-core:private
Then
it should pass with:
justin/rspec-core's visibility is now private
Change a project's visibility from private to public
Given
I have a project named "rspec-core"
And
the visibility of project "rspec-core" is private
When
I run relish projects:visibility justin/rspec-core:public
Then
it should pass with:
justin/rspec-core's visibility is now public
Set a project's visibility to private when it already is private
Given
I have a project named "rspec-core"
And
the visibility of project "rspec-core" is private
When
I run relish projects:visibility rspec-core:private
Then
it should pass with:
justin/rspec-core's visibility is already private
Set a project's visibility to public when it already is public
Given
I have a project named "rspec-core"
And
the visibility of project "rspec-core" is public
When
I run relish projects:visibility justin/rspec-core:public
Then
it should pass with:
justin/rspec-core's visibility is already public

Last published about 1 year ago by mattwynne.