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
972562b4
Commit
972562b4
authored
Jan 12, 2022
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update helper spec
parent
a1b819eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
ee/spec/helpers/ee/integrations_helper_spec.rb
ee/spec/helpers/ee/integrations_helper_spec.rb
+11
-11
No files found.
ee/spec/helpers/ee/integrations_helper_spec.rb
View file @
972562b4
...
...
@@ -133,16 +133,16 @@ RSpec.describe EE::IntegrationsHelper do
it
'includes the required keys'
do
additions
=
subject
.
gitlab_slack_application_data
(
relation
)
expect
(
additions
.
keys
).
to
match_array
%w[
projects
sign_in_path
is_signed_in
slack_link_profile_slack_path
gitlab_for_slack_gif_path
gitlab_logo_path
slack_logo_path
docs_path
]
expect
(
additions
.
keys
).
to
include
(
:projects
,
:sign_in_path
,
:is_signed_in
,
:slack_link_path
,
:gitlab_for_slack_gif_path
,
:gitlab_logo_path
,
:slack_logo_path
,
:
docs_path
)
end
it
'does not suffer from N+1 performance issues'
do
...
...
@@ -154,7 +154,7 @@ RSpec.describe EE::IntegrationsHelper do
end
it
'serializes nil projects without error'
do
expect
(
subject
.
gitlab_slack_application_data
(
nil
)).
to
include
(
'"projects":null
'
)
expect
(
subject
.
gitlab_slack_application_data
(
nil
)).
to
include
(
projects:
'[]
'
)
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