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
993cb1f4
Commit
993cb1f4
authored
Jul 07, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix performance bar specs
parent
cbc015ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
spec/features/user_can_display_performance_bar_spec.rb
spec/features/user_can_display_performance_bar_spec.rb
+10
-5
No files found.
spec/features/user_can_display_performance_bar_spec.rb
View file @
993cb1f4
...
...
@@ -33,6 +33,8 @@ describe 'User can display performance bar', :js do
end
end
let
(
:group
)
{
create
(
:group
)
}
context
'when user is logged-out'
do
before
do
visit
root_path
...
...
@@ -40,7 +42,7 @@ describe 'User can display performance bar', :js do
context
'when the performance_bar feature is disabled'
do
before
do
Feature
.
disable
(
:performance_bar
)
stub_application_setting
(
performance_bar_allowed_group_id:
nil
)
end
it_behaves_like
'performance bar is disabled'
...
...
@@ -48,7 +50,7 @@ describe 'User can display performance bar', :js do
context
'when the performance_bar feature is enabled'
do
before
do
Feature
.
enable
(
:performance_bar
)
stub_application_setting
(
performance_bar_allowed_group_id:
group
.
id
)
end
it_behaves_like
'performance bar is disabled'
...
...
@@ -57,14 +59,17 @@ describe 'User can display performance bar', :js do
context
'when user is logged-in'
do
before
do
gitlab_sign_in
(
create
(
:user
))
user
=
create
(
:user
)
gitlab_sign_in
(
user
)
group
.
add_guest
(
user
)
visit
root_path
end
context
'when the performance_bar feature is disabled'
do
before
do
Feature
.
disable
(
:performance_bar
)
stub_application_setting
(
performance_bar_allowed_group_id:
nil
)
end
it_behaves_like
'performance bar is disabled'
...
...
@@ -72,7 +77,7 @@ describe 'User can display performance bar', :js do
context
'when the performance_bar feature is enabled'
do
before
do
Feature
.
enable
(
:performance_bar
)
stub_application_setting
(
performance_bar_allowed_group_id:
group
.
id
)
end
it_behaves_like
'performance bar is enabled'
...
...
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