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
2d18120a
Commit
2d18120a
authored
Aug 09, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Found the problem
parent
47cd0c5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
spec/features/promotion_spec.rb
spec/features/promotion_spec.rb
+7
-11
No files found.
spec/features/promotion_spec.rb
View file @
2d18120a
require
'spec_helper'
describe
'Promotions'
,
js:
true
do
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:otherproject
)
{
create
(
:project
,
:repository
)
}
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:standarddeveloper
)
{
create
(
:user
)
}
let
(
:otherdeveloper
)
{
create
(
:user
,
,
name:
'TheOtherDeveloper'
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:otherproject
)
{
create
(
:project
,
:repository
,
namespace:
otherdeveloper
.
namespace
)
}
describe
'if you have a license'
do
before
do
...
...
@@ -44,23 +44,21 @@ describe 'Promotions', js: true do
describe
'for project features in general'
,
js:
true
do
context
'for .com'
do
before
do
project
.
team
<<
[
standarddeveloper
,
:developer
]
project
.
add_developer
(
standarddeveloper
)
project
.
team
<<
[
user
,
:master
]
otherproject
.
team
<<
[
user
,
:
develop
er
]
otherproject
.
team
<<
[
user
,
:
mast
er
]
stub_application_setting
(
check_namespace_plan:
true
)
allow
(
Gitlab
).
to
receive
(
:com?
)
{
true
}
end
it
'should have the Upgrade your plan button'
do
sign_in
(
user
)
end
it
'should have the Upgrade your plan button'
do
visit
edit_project_path
(
project
)
expect
(
find
(
'#promote_service_desk'
)).
to
have_content
'Upgrade your plan'
end
it
'should have the contact owner line'
do
sign_in
(
user
)
visit
edit_project_path
(
otherproject
)
expect
(
find
(
'#promote_service_desk'
)).
to
have_content
'Contact owner'
end
...
...
@@ -175,6 +173,4 @@ describe 'Promotions', js: true do
expect
(
page
).
not_to
have_selector
(
'#promote_squash_commits'
)
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