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
45e11d95
Commit
45e11d95
authored
Oct 15, 2015
by
Han Loong Liauw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spinach features to use new button wordings
Also fixed an accidental deletion of pratial
parent
f7ed469e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
show.html.haml
app/views/projects/snippets/show.html.haml
+1
-0
snippets.feature
features/project/snippets.feature
+1
-1
snippets.feature
features/snippets/snippets.feature
+1
-1
snippets.rb
features/steps/project/snippets.rb
+3
-3
snippets.rb
features/steps/snippets/snippets.rb
+3
-3
No files found.
app/views/projects/snippets/show.html.haml
View file @
45e11d95
...
...
@@ -11,4 +11,5 @@
.btn-group
=
link_to
'Raw'
,
raw_namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
render
'shared/snippets/blob'
%div
#notes
=
render
"projects/notes/notes_with_form"
features/project/snippets.feature
View file @
45e11d95
...
...
@@ -30,5 +30,5 @@ Feature: Project Snippets
Scenario
:
I
destroy
"Snippet one"
Given
I visit snippet page
"Snippet one"
And
I click link
"
Remove Snippet
"
And
I click link
"
Delete
"
Then
I should not see
"Snippet one"
in snippets
features/snippets/snippets.feature
View file @
45e11d95
...
...
@@ -24,7 +24,7 @@ Feature: Snippets
Scenario
:
I
destroy
"Personal snippet one"
Given
I visit snippet page
"Personal snippet one"
And
I click link
"De
stroy
"
And
I click link
"De
lete
"
Then
I should not see
"Personal snippet one"
in snippets
Scenario
:
I
create new internal snippet
...
...
features/steps/project/snippets.rb
View file @
45e11d95
...
...
@@ -42,13 +42,13 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
step
'I click link "Edit"'
do
page
.
within
".
fil
e-title"
do
page
.
within
".
pag
e-title"
do
click_link
"Edit"
end
end
step
'I click link "
Remove Snippet
"'
do
click_link
"
remov
e"
step
'I click link "
Delete
"'
do
click_link
"
Delet
e"
end
step
'I submit new snippet "Snippet three"'
do
...
...
features/steps/snippets/snippets.rb
View file @
45e11d95
...
...
@@ -13,13 +13,13 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps
end
step
'I click link "Edit"'
do
page
.
within
".
fil
e-title"
do
page
.
within
".
pag
e-title"
do
click_link
"Edit"
end
end
step
'I click link "De
stroy
"'
do
click_link
"
remov
e"
step
'I click link "De
lete
"'
do
click_link
"
Delet
e"
end
step
'I submit new snippet "Personal snippet three"'
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