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
692570c8
Commit
692570c8
authored
Aug 06, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating Promotion Spec
parent
0ead47a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
spec/features/promotion_spec.rb
spec/features/promotion_spec.rb
+2
-3
No files found.
spec/features/promotion_spec.rb
View file @
692570c8
...
...
@@ -21,13 +21,14 @@ describe 'Promotions', js: true do
describe
'for project features in general on premise'
do
context
'no license installed'
do
before
do
stub_application_setting_on_object
(
project
,
should_check_namespace_plan:
true
)
License
.
destroy_all
sign_in
(
user
)
project
.
team
<<
[
user
,
:master
]
end
it
'should have the contact admin line'
do
visit
edit_project_path
(
project
)
expect
(
find
(
'#promote_service_desk'
)).
to
have_content
'Contact your Administrator to upgrade your license.'
end
...
...
@@ -43,9 +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
}
License
.
destroy_all
end
it
'should have the Upgrade your plan button'
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