summaryrefslogtreecommitdiff
path: root/features/snippets
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-06-19 21:18:24 -0700
committerStan Hu <stanhu@gmail.com>2015-06-19 21:23:46 -0700
commite785b9d2e24ca7e16e8ff3fa46f2e2b82478be9b (patch)
tree06f762b77dee4c8a05fecd4dd42d0b1dfefee5e5 /features/snippets
parent74a6732c0dfc1416cad382203544d9c4d6246f58 (diff)
downloadgitlab-ce-e785b9d2e24ca7e16e8ff3fa46f2e2b82478be9b.tar.gz
Fix Error 500 when one user attempts to access a personal, internal snippet
Closes #1815
Diffstat (limited to 'features/snippets')
-rw-r--r--features/snippets/snippets.feature13
1 files changed, 12 insertions, 1 deletions
diff --git a/features/snippets/snippets.feature b/features/snippets/snippets.feature
index 6e8019c326f..4f617b6bed8 100644
--- a/features/snippets/snippets.feature
+++ b/features/snippets/snippets.feature
@@ -25,4 +25,15 @@ Feature: Snippets
Scenario: I destroy "Personal snippet one"
Given I visit snippet page "Personal snippet one"
And I click link "Destroy"
- Then I should not see "Personal snippet one" in snippets \ No newline at end of file
+ Then I should not see "Personal snippet one" in snippets
+
+ Scenario: I create new internal snippet
+ Given I logout directly
+ And I sign in as an admin
+ Then I visit new snippet page
+ And I submit new internal snippet
+ Then I visit snippet page "Internal personal snippet one"
+ And I logout directly
+ Then I sign in as a user
+ Given I visit new snippet page
+ Then I visit snippet page "Internal personal snippet one"