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
afef4a66
Commit
afef4a66
authored
May 17, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for last commit info when browsing repository files
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
d3b24a76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
browse_files_spec.rb
spec/features/projects/files/browse_files_spec.rb
+12
-0
No files found.
spec/features/projects/files/browse_files_spec.rb
View file @
afef4a66
...
...
@@ -31,4 +31,16 @@ feature 'user browses project', feature: true, js: true do
expect
(
page
).
to
have_content
'oid sha256:91eff75a492a3ed0dfcb544d7f31326bc4014c8551849c192fd1e48d4dd2c897'
expect
(
page
).
to
have_content
'size 1575078'
end
scenario
'can see last commit for current directory'
do
last_commit
=
project
.
repository
.
last_commit_for_path
(
project
.
default_branch
,
'files'
)
click_link
'files'
wait_for_ajax
page
.
within
(
'.blob-commit-info'
)
do
expect
(
page
).
to
have_content
last_commit
.
short_id
expect
(
page
).
to
have_content
last_commit
.
author_name
end
end
end
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