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
611ac727
Commit
611ac727
authored
Mar 25, 2013
by
Andrew8xx8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests for private snippet fixed
parent
ed4dcf74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/views/snippets/show.html.haml
app/views/snippets/show.html.haml
+1
-1
features/steps/snippets/snippets.rb
features/steps/snippets/snippets.rb
+1
-1
No files found.
app/views/snippets/show.html.haml
View file @
611ac727
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
-
if
@snippet
.
private?
-
if
@snippet
.
private?
%i
.icon-lock
%i
.icon-lock
-
else
-
else
%i
.icon-globe
.public-snippet
%i
.icon-globe
=
@snippet
.
title
=
@snippet
.
title
%small
=
@snippet
.
file_name
%small
=
@snippet
.
file_name
...
...
features/steps/snippets/snippets.rb
View file @
611ac727
...
@@ -51,7 +51,7 @@ class Snippets < Spinach::FeatureSteps
...
@@ -51,7 +51,7 @@ class Snippets < Spinach::FeatureSteps
end
end
Then
'I should see "Personal snippet one" public'
do
Then
'I should see "Personal snippet one" public'
do
page
.
should
have_
selector
(
:xpath
,
"//i[@class='public-snippet']"
)
page
.
should
have_
no_xpath
(
"//i[@class='public-snippet']"
)
end
end
And
'I visit snippet page "Personal snippet one"'
do
And
'I visit snippet page "Personal snippet one"'
do
...
...
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