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
0f89e690
Commit
0f89e690
authored
Dec 08, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec
parent
57d71520
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
features/project/source/browse_files.feature
features/project/source/browse_files.feature
+0
-6
features/steps/project/source/browse_files.rb
features/steps/project/source/browse_files.rb
+0
-4
No files found.
features/project/source/browse_files.feature
View file @
0f89e690
...
@@ -110,12 +110,6 @@ Feature: Project Source Browse Files
...
@@ -110,12 +110,6 @@ Feature: Project Source Browse Files
Given
I visit a binary file in the repo
Given
I visit a binary file in the repo
Then
I cannot see the edit button
Then
I cannot see the edit button
Scenario
:
If I don't have edit permission the edit link is disabled
Given
public project
"Community"
And
I visit project
"Community"
source page
And
I click on
".gitignore"
file in repo
Then
The edit button is disabled
@javascript
@javascript
Scenario
:
I
can edit and commit file
Scenario
:
I
can edit and commit file
Given
I click on
".gitignore"
file in repo
Given
I click on
".gitignore"
file in repo
...
...
features/steps/project/source/browse_files.rb
View file @
0f89e690
...
@@ -53,10 +53,6 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
...
@@ -53,10 +53,6 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
expect
(
page
).
not_to
have_link
'edit'
expect
(
page
).
not_to
have_link
'edit'
end
end
step
'The edit button is disabled'
do
expect
(
page
).
to
have_css
'.disabled'
,
text:
'Edit'
end
step
'I can edit code'
do
step
'I can edit code'
do
set_new_content
set_new_content
expect
(
evaluate_script
(
'blob.editor.getValue()'
)).
to
eq
new_gitignore_content
expect
(
evaluate_script
(
'blob.editor.getValue()'
)).
to
eq
new_gitignore_content
...
...
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