Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
e0af7cef
Commit
e0af7cef
authored
Mar 25, 2013
by
Andrew8xx8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typos fixed
parent
03de5a5c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/controllers/snippets_controller.rb
app/controllers/snippets_controller.rb
+2
-2
features/snippets/snippets.feature
features/snippets/snippets.feature
+1
-1
features/steps/snippets/snippets.rb
features/steps/snippets/snippets.rb
+1
-1
No files found.
app/controllers/snippets_controller.rb
View file @
e0af7cef
...
...
@@ -31,11 +31,11 @@ class SnippetsController < ApplicationController
end
def
new
@snippet
=
PersonalSnippet
.
build
@snippet
=
PersonalSnippet
.
new
end
def
create
@snippet
=
PersonalSnippet
.
build
(
params
[
:personal_snippet
])
@snippet
=
PersonalSnippet
.
new
(
params
[
:personal_snippet
])
@snippet
.
author
=
current_user
if
@snippet
.
save
...
...
features/snippets/snippets.feature
View file @
e0af7cef
Feature
:
Snippets
Feature
:
Snippets
Feature
Background
:
Given
I sign in as a user
And
I have public
"Personal snippet one"
snippet
...
...
features/steps/snippets/snippets.rb
View file @
e0af7cef
class
Snippets
<
Spinach
::
FeatureSteps
class
Snippets
Feature
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedProject
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment