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
51dc85cb
Commit
51dc85cb
authored
Aug 04, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another try for stubbing
parent
22657a16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+2
-0
spec/features/promotion_spec.rb
spec/features/promotion_spec.rb
+2
-0
No files found.
app/views/projects/edit.html.haml
View file @
51dc85cb
...
...
@@ -140,6 +140,8 @@
Check
Namespace
plan
#{
current_application_settings
.
should_check_namespace_plan?
}
%div
Show
Callout
#{
show_callout?
(
'promote_service_desk_dismissed'
)
}
%div
.com
#{
Gitlab
.
com?
}
-
if
EE
::
Gitlab
::
ServiceDesk
.
enabled?
(
project:
@project
)
%hr
...
...
spec/features/promotion_spec.rb
View file @
51dc85cb
...
...
@@ -22,6 +22,7 @@ describe 'Promotions', js: true do
context
'no license installed'
do
before
do
allow
(
License
).
to
receive
(
:current
)
{
nil
}
allow_any_instance_of
(
Project
).
to
receive_message_chain
(
:current_application_settings
,
:should_check_namespace_plan?
)
{
true
}
sign_in
(
user
)
project
.
team
<<
[
user
,
:master
]
...
...
@@ -43,6 +44,7 @@ describe 'Promotions', js: true do
context
'for .com'
do
before
do
stub_application_setting
(
check_namespace_plan:
true
)
allow_any_instance_of
(
Project
).
to
receive_message_chain
(
:current_application_settings
,
:should_check_namespace_plan?
)
{
true
}
allow
(
Gitlab
).
to
receive
(
:com?
)
{
true
}
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