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
4a035e93
Commit
4a035e93
authored
Aug 23, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Last test fixed
parent
a0a1c03e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/ee/spec/views/layouts/nav/_group.html.haml_spec.rb
spec/ee/spec/views/layouts/nav/_group.html.haml_spec.rb
+4
-2
No files found.
spec/ee/spec/views/layouts/nav/_group.html.haml_spec.rb
View file @
4a035e93
...
...
@@ -15,12 +15,14 @@ describe 'layouts/nav/_group' do
end
context
'no license installed'
do
current_user
=
create
(
:user
)
allow
(
helper
).
to
receive
(
:current_user
).
and_return
(
current_user
)
let!
(
:cuser
)
{
create
(
:admin
)
}
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
allow
(
view
).
to
receive
(
:can?
).
and_return
(
true
)
allow
(
view
).
to
receive
(
:current_user
).
and_return
(
cuser
)
end
it
'is visible when there is no valid license but we show promotions'
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