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
Boxiang Sun
gitlab-ce
Commits
2b92cca8
Commit
2b92cca8
authored
May 22, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify spec/features/projects/blobs/blob_show_spec.rb
parent
4d674bd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
spec/features/projects/blobs/blob_show_spec.rb
spec/features/projects/blobs/blob_show_spec.rb
+18
-0
No files found.
spec/features/projects/blobs/blob_show_spec.rb
View file @
2b92cca8
...
@@ -14,6 +14,8 @@ feature 'File blob', :js do
...
@@ -14,6 +14,8 @@ feature 'File blob', :js do
context
'Ruby file'
do
context
'Ruby file'
do
before
do
before
do
visit_blob
(
'files/ruby/popen.rb'
)
visit_blob
(
'files/ruby/popen.rb'
)
wait_for_requests
end
end
it
'displays the blob'
do
it
'displays the blob'
do
...
@@ -48,6 +50,8 @@ feature 'File blob', :js do
...
@@ -48,6 +50,8 @@ feature 'File blob', :js do
context
'visiting directly'
do
context
'visiting directly'
do
before
do
before
do
visit_blob
(
'files/markdown/ruby-style-guide.md'
)
visit_blob
(
'files/markdown/ruby-style-guide.md'
)
wait_for_requests
end
end
it
'displays the blob using the rich viewer'
do
it
'displays the blob using the rich viewer'
do
...
@@ -159,6 +163,8 @@ feature 'File blob', :js do
...
@@ -159,6 +163,8 @@ feature 'File blob', :js do
project
.
update_attribute
(
:lfs_enabled
,
true
)
project
.
update_attribute
(
:lfs_enabled
,
true
)
visit_blob
(
'files/lfs/file.md'
)
visit_blob
(
'files/lfs/file.md'
)
wait_for_requests
end
end
it
'displays an error'
do
it
'displays an error'
do
...
@@ -207,6 +213,8 @@ feature 'File blob', :js do
...
@@ -207,6 +213,8 @@ feature 'File blob', :js do
context
'when LFS is disabled on the project'
do
context
'when LFS is disabled on the project'
do
before
do
before
do
visit_blob
(
'files/lfs/file.md'
)
visit_blob
(
'files/lfs/file.md'
)
wait_for_requests
end
end
it
'displays the blob'
do
it
'displays the blob'
do
...
@@ -242,6 +250,8 @@ feature 'File blob', :js do
...
@@ -242,6 +250,8 @@ feature 'File blob', :js do
).
execute
).
execute
visit_blob
(
'files/test.pdf'
)
visit_blob
(
'files/test.pdf'
)
wait_for_requests
end
end
it
'displays the blob'
do
it
'displays the blob'
do
...
@@ -268,6 +278,8 @@ feature 'File blob', :js do
...
@@ -268,6 +278,8 @@ feature 'File blob', :js do
project
.
update_attribute
(
:lfs_enabled
,
true
)
project
.
update_attribute
(
:lfs_enabled
,
true
)
visit_blob
(
'files/lfs/lfs_object.iso'
)
visit_blob
(
'files/lfs/lfs_object.iso'
)
wait_for_requests
end
end
it
'displays the blob'
do
it
'displays the blob'
do
...
@@ -290,6 +302,8 @@ feature 'File blob', :js do
...
@@ -290,6 +302,8 @@ feature 'File blob', :js do
context
'when LFS is disabled on the project'
do
context
'when LFS is disabled on the project'
do
before
do
before
do
visit_blob
(
'files/lfs/lfs_object.iso'
)
visit_blob
(
'files/lfs/lfs_object.iso'
)
wait_for_requests
end
end
it
'displays the blob'
do
it
'displays the blob'
do
...
@@ -313,6 +327,8 @@ feature 'File blob', :js do
...
@@ -313,6 +327,8 @@ feature 'File blob', :js do
context
'ZIP file'
do
context
'ZIP file'
do
before
do
before
do
visit_blob
(
'Gemfile.zip'
)
visit_blob
(
'Gemfile.zip'
)
wait_for_requests
end
end
it
'displays the blob'
do
it
'displays the blob'
do
...
@@ -347,6 +363,8 @@ feature 'File blob', :js do
...
@@ -347,6 +363,8 @@ feature 'File blob', :js do
).
execute
).
execute
visit_blob
(
'files/empty.md'
)
visit_blob
(
'files/empty.md'
)
wait_for_requests
end
end
it
'displays an error'
do
it
'displays an error'
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