diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-07-27 18:40:00 +0400 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-09-03 15:08:35 +0400 |
commit | 551145bc98e257280b615e305d531a44d7aa4131 (patch) | |
tree | 20a853ca41d610247f955a9c8824ba50b18d3220 /features/project | |
parent | 7a0e1c7238033b33b7296701bfded56d4ad7f250 (diff) |
Validate branch-names and references in WebUI, API
Add specs for GitRefValidator
Diffstat (limited to 'features/project')
-rw-r--r-- | features/project/commits/branches.feature | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/features/project/commits/branches.feature b/features/project/commits/branches.feature index d657bd4951f..6725a697c21 100644 --- a/features/project/commits/branches.feature +++ b/features/project/commits/branches.feature @@ -23,3 +23,21 @@ Feature: Project Browse branches Given I visit project branches page And I click branch 'improve/awesome' delete link Then I should not see branch 'improve/awesome' + + Scenario: I create a branch with invalid name + Given I visit project branches page + And I click new branch link + When I submit new branch form with invalid name + Then I should see new an error that branch is invalid + + Scenario: I create a branch with invalid reference + Given I visit project branches page + And I click new branch link + When I submit new branch form with invalid reference + Then I should see new an error that ref is invalid + + Scenario: I create a branch that already exists + Given I visit project branches page + And I click new branch link + When I submit new branch form with branch that already exists + Then I should see new an error that branch already exists |