Sha256: 8bd03ab4ab6fd5b994b4ea6d41d356e921e8b6bff6a5fdc22378f3415faaf0f6

Contents?: true

Size: 1.39 KB

Versions: 4

Compression:

Stored size: 1.39 KB

Contents

Feature: Clear user
    As a user 
    I want to clear my Git configured user
    So that I can make sure others don't commit code as me

    Scenario: Clear user in specified scope
        Given user "John Galt <jgalt@example.com>" is selected in "local" scope
        When I type "git su --clear --local"
        Then I should see "Clearing Git user in local scope"
        And no user should be selected in "local" scope

    Scenario: Clear user in multiple specified scopes
        Given user "John Galt <jgalt@example.com>" is selected in "local" scope
        And user "John Galt <jgalt@example.com>" is selected in "global" scope
        When I type "git su --clear --local --global"
        Then I should see "Clearing Git users in local and global scopes"
        And no user should be selected in "local" scope
        And no user should be selected in "global" scope

    Scenario: Clear all users
        Given user "Joe Local <jlocal@example.com>" is selected in "local" scope
        And user "Joe Global <jglobal@example.com>" is selected in "global" scope
        And user "Joe System <jsystem@example.com>" is selected in "system" scope
        When I type "git su --clear"
        Then I should see "Clearing Git users in all scopes"
        And no user should be selected in "local" scope
        And no user should be selected in "global" scope
        And no user should be selected in "system" scope

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gitsu-1.0.0 features/clear_user.feature
gitsu-0.0.3 features/clear_user.feature
gitsu-0.0.2 features/clear_user.feature
gitsu-0.0.1 features/clear_user.feature