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
6d9b56d2
Commit
6d9b56d2
authored
Jul 06, 2020
by
Kyle Wiebers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop leaking Grape::Endpoint mocks for GitHub and BitBucket
parent
2b12d49b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
spec/requests/api/import_bitbucket_server_spec.rb
spec/requests/api/import_bitbucket_server_spec.rb
+4
-0
spec/requests/api/import_github_spec.rb
spec/requests/api/import_github_spec.rb
+4
-0
No files found.
spec/requests/api/import_bitbucket_server_spec.rb
View file @
6d9b56d2
...
...
@@ -198,6 +198,10 @@ RSpec.describe API::ImportBitbucketServer do
end
end
after
do
Grape
::
Endpoint
.
before_each
nil
end
it
'raises a connection error'
do
post
api
(
"/import/bitbucket_server"
,
user
),
params:
{
bitbucket_server_url:
base_uri
,
...
...
spec/requests/api/import_github_spec.rb
View file @
6d9b56d2
...
...
@@ -26,6 +26,10 @@ RSpec.describe API::ImportGithub do
end
end
after
do
Grape
::
Endpoint
.
before_each
nil
end
it
'rejects requests when Github Importer is disabled'
do
stub_application_setting
(
import_sources:
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