Sha256: 869c7e71809a08bd0eef2bd1860fb03555a3b042bccd93011e7595753219af7d

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

Feature: edit permissions for a project

  As an admin,
  I can manage permissions for each project in my account, so only project
  members can edit blurbs.

  Scenario: edit permissions for a project
    Given the following project exists:
      | name       | account          |
      | Stocknames | name: thoughtbot |
    And the following users exist:
      | name | email            |
      | Bill | bill@example.com |
      | Jane | jane@example.com |
      | Jeff | jeff@example.com |
      | Hank | hank@example.com |
    And I am signed in as an admin of the "Stocknames" project
    And "bill@example.com" is a member of the "Stocknames" project
    And "jane@example.com" is a member of the "thoughtbot" account
    And "hank@example.com" is an admin of the "Stocknames" project
    When I go to the settings page for the "thoughtbot" account
    And I follow "Projects" within ".tabs"
    And I follow "Stocknames" within "ul.projects"
    Then "Bill" should be listed as a member
    And "Hank" should be listed as an admin
    And "Jane" should be listed as a non-member
    And I should not see "Jeff"
    When I check "Jane"
    And I uncheck "Bill"
    And I press "Update"
    Then I should see "Project was updated"
    When I follow "Stocknames" within "ul.projects"
    Then the "Bill" checkbox should not be checked
    And the "Jane" checkbox should be checked
    And I should not see "Jeff"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
saucy-0.2.36 lib/generators/saucy/features/templates/features/edit_project_permissions.feature