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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b2989791
Commit
b2989791
authored
Apr 21, 2021
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@13-11-stable-ee
parent
4177ade6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
spec/views/admin/dashboard/index.html.haml_spec.rb
spec/views/admin/dashboard/index.html.haml_spec.rb
+14
-2
No files found.
spec/views/admin/dashboard/index.html.haml_spec.rb
View file @
b2989791
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
'admin/dashboard/index.html.haml'
do
include
Devise
::
Test
::
ControllerHelpers
include
StubVersion
before
do
counts
=
Admin
::
DashboardController
::
COUNTED_ITEMS
.
each_with_object
({})
do
|
item
,
hash
|
...
...
@@ -26,10 +27,21 @@ RSpec.describe 'admin/dashboard/index.html.haml' do
expect
(
rendered
).
to
have_content
Gitlab
::
Workhorse
.
version
end
it
"includes revision of GitLab"
do
it
"includes revision of GitLab for pre VERSION"
do
stub_version
(
'13.11.0-pre'
,
'abcdefg'
)
render
expect
(
rendered
).
to
have_content
"13.11.0-pre abcdefg"
end
it
'shows the tag for GitLab version'
do
stub_version
(
'13.11.0'
,
'abcdefg'
)
render
expect
(
rendered
).
to
have_content
"
#{
Gitlab
::
VERSION
}
#{
Gitlab
.
revision
}
"
expect
(
rendered
).
to
have_content
"13.11.0"
expect
(
rendered
).
not_to
have_content
"abcdefg"
end
it
'does not include license breakdown'
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