BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
snippets_controller.rb
app/controllers/snippets_controller.rb
+2
-2
snippets.feature
features/snippets/snippets.feature
+1
-1
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