forked from loomio/loomio
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request loomio#1212 from loomio/rename-secret-to-hidden
rename secret to hidden
- Loading branch information
Showing
25 changed files
with
143 additions
and
134 deletions.
There are no files selected for viewing
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class RenameSecretToHidden < ActiveRecord::Migration | ||
def up | ||
Group.where(privacy: 'secret').update_all("privacy = 'hidden'") | ||
end | ||
|
||
def down | ||
Group.where(privacy: 'hidden').update_all("privacy = 'secret'") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
Feature: Coordinator sets group privacy to secret | ||
Feature: Coordinator sets group privacy to hidden | ||
As a group coordinator | ||
I want to make the group secret | ||
I want to make the group hidden | ||
So only members know it exists | ||
|
||
Background: | ||
Given I am logged in | ||
|
||
Scenario: Coordinator sets group privacy to secret | ||
Scenario: Coordinator sets group privacy to hidden | ||
Given I am a coordinator of a public group | ||
When I visit the group settings page | ||
And I set the group to secret | ||
Then the group should be set to secret | ||
And I set the group to hidden | ||
Then the group should be set to hidden | ||
|
||
Scenario: Non-member tries to view secret group | ||
Given a secret group exists | ||
Scenario: Non-member tries to view hidden group | ||
Given a hidden group exists | ||
And the group has discussions | ||
When I visit the group page | ||
Then I should not see the group's discussions | ||
|
||
Scenario: Member views secret group | ||
Given I am a member of a secret group | ||
Scenario: Member views hidden group | ||
Given I am a member of a hidden group | ||
And the group has discussions | ||
When I visit the group page | ||
Then I should see the group's discussions | ||
|
||
Scenario: Non-member tries to view secret sub-group | ||
Given a secret sub-group exists | ||
Scenario: Non-member tries to view hidden sub-group | ||
Given a hidden sub-group exists | ||
And the sub-group has discussions | ||
When I visit the sub-group page | ||
Then I should not see the sub-group's discussions | ||
|
||
Scenario: Member views secret sub-group | ||
Given I am a member of a secret sub-group | ||
Scenario: Member views hidden sub-group | ||
Given I am a member of a hidden sub-group | ||
And the sub-group has discussions | ||
When I visit the sub-group page | ||
Then I should see the sub-group's discussions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.