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
b6b6cbd2
Commit
b6b6cbd2
authored
Aug 23, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More Test Changes
parent
62c2cd2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
17 deletions
+26
-17
spec/controllers/groups/analytics_controller_spec.rb
spec/controllers/groups/analytics_controller_spec.rb
+0
-1
spec/ee/spec/views/layouts/nav/_group.html.haml_spec.rb
spec/ee/spec/views/layouts/nav/_group.html.haml_spec.rb
+2
-0
spec/features/promotion_spec.rb
spec/features/promotion_spec.rb
+24
-16
No files found.
spec/controllers/groups/analytics_controller_spec.rb
View file @
b6b6cbd2
...
...
@@ -54,7 +54,6 @@ describe Groups::AnalyticsController do
it
'returns page when feature is not available and we show promotions'
do
stub_licensed_features
(
contribution_analytics:
false
)
let!
(
:license
)
{
nil
}
get
:show
,
group_id:
group
.
path
...
...
spec/ee/spec/views/layouts/nav/_group.html.haml_spec.rb
View file @
b6b6cbd2
...
...
@@ -16,6 +16,8 @@ describe 'layouts/nav/_group' do
context
'no license installed'
do
before
do
current_user
=
create
(
:user
)
allow
(
helper
).
to
receive
(
:current_user
).
and_return
(
current_user
)
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
end
...
...
spec/features/promotion_spec.rb
View file @
b6b6cbd2
...
...
@@ -69,9 +69,10 @@ describe 'Promotions', js: true do
end
describe
'for service desk'
,
js:
true
do
let!
(
:license
)
{
nil
}
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
end
...
...
@@ -95,9 +96,10 @@ describe 'Promotions', js: true do
end
describe
'for merge request improve'
,
js:
true
do
let!
(
:license
)
{
nil
}
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
end
...
...
@@ -121,9 +123,10 @@ describe 'Promotions', js: true do
end
describe
'for repository features'
,
js:
true
do
let!
(
:license
)
{
nil
}
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
end
...
...
@@ -148,9 +151,10 @@ describe 'Promotions', js: true do
end
describe
'for squash commits'
,
js:
true
do
let!
(
:license
)
{
nil
}
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
end
...
...
@@ -174,9 +178,10 @@ describe 'Promotions', js: true do
end
describe
'for burndown charts'
,
js:
true
do
let!
(
:license
)
{
nil
}
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
end
...
...
@@ -200,9 +205,10 @@ describe 'Promotions', js: true do
end
describe
'for issue export'
,
js:
true
do
let!
(
:license
)
{
nil
}
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
end
...
...
@@ -215,9 +221,10 @@ describe 'Promotions', js: true do
end
describe
'for project audit events'
,
js:
true
do
let!
(
:license
)
{
nil
}
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
end
...
...
@@ -229,9 +236,10 @@ describe 'Promotions', js: true do
end
describe
'for group contribution analytics'
,
js:
true
do
let!
(
:license
)
{
nil
}
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
group
.
add_owner
(
user
)
sign_in
(
user
)
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