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
Kazuhiko Shiozaki
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
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
app/views/projects/snippets/show.html.haml
app/views/projects/snippets/show.html.haml
+1
-0
features/project/snippets.feature
features/project/snippets.feature
+1
-1
features/snippets/snippets.feature
features/snippets/snippets.feature
+1
-1
features/steps/project/snippets.rb
features/steps/project/snippets.rb
+3
-3
features/steps/snippets/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 @@
...
@@ -11,4 +11,5 @@
.btn-group
.btn-group
=
link_to
'Raw'
,
raw_namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
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"
%div
#notes
=
render
"projects/notes/notes_with_form"
features/project/snippets.feature
View file @
45e11d95
...
@@ -30,5 +30,5 @@ Feature: Project Snippets
...
@@ -30,5 +30,5 @@ Feature: Project Snippets
Scenario
:
I
destroy
"Snippet one"
Scenario
:
I
destroy
"Snippet one"
Given
I visit snippet page
"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
Then
I should not see
"Snippet one"
in snippets
features/snippets/snippets.feature
View file @
45e11d95
...
@@ -24,7 +24,7 @@ Feature: Snippets
...
@@ -24,7 +24,7 @@ Feature: Snippets
Scenario
:
I
destroy
"Personal snippet one"
Scenario
:
I
destroy
"Personal snippet one"
Given
I visit snippet page
"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
Then
I should not see
"Personal snippet one"
in snippets
Scenario
:
I
create new internal snippet
Scenario
:
I
create new internal snippet
...
...
features/steps/project/snippets.rb
View file @
45e11d95
...
@@ -42,13 +42,13 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
...
@@ -42,13 +42,13 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
end
step
'I click link "Edit"'
do
step
'I click link "Edit"'
do
page
.
within
".
fil
e-title"
do
page
.
within
".
pag
e-title"
do
click_link
"Edit"
click_link
"Edit"
end
end
end
end
step
'I click link "
Remove Snippet
"'
do
step
'I click link "
Delete
"'
do
click_link
"
remov
e"
click_link
"
Delet
e"
end
end
step
'I submit new snippet "Snippet three"'
do
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
...
@@ -13,13 +13,13 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps
end
end
step
'I click link "Edit"'
do
step
'I click link "Edit"'
do
page
.
within
".
fil
e-title"
do
page
.
within
".
pag
e-title"
do
click_link
"Edit"
click_link
"Edit"
end
end
end
end
step
'I click link "De
stroy
"'
do
step
'I click link "De
lete
"'
do
click_link
"
remov
e"
click_link
"
Delet
e"
end
end
step
'I submit new snippet "Personal snippet three"'
do
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