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
797ef7c1
Commit
797ef7c1
authored
Aug 03, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing Test Group
parent
22481b1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
spec/features/promotion_spec.rb
spec/features/promotion_spec.rb
+11
-6
No files found.
spec/features/promotion_spec.rb
View file @
797ef7c1
...
...
@@ -6,14 +6,19 @@ describe 'Promotions', js: true do
let
(
:developer
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:empty_project
,
path:
'gitlab'
,
name:
'sample'
)
}
describe
'no promotion shown at all if you have a license'
,
js:
true
do
sign_in
(
user
)
project
.
team
<<
[
user
,
:master
]
visit
edit_project_path
(
project
)
expect
(
page
).
not_to
have_selector
(
'#promote_service_desk'
)
describe
'if you have a license'
do
before
do
sign_in
(
user
)
project
.
team
<<
[
user
,
:master
]
end
it
'should show no promotion at all '
visit
edit_project_path
(
project
)
expect
(
page
).
not_to
have_selector
(
'#promote_service_desk'
)
end
end
describe
'for project features in general on premise'
,
js:
true
do
describe
'for project features in general on premise'
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
...
...
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