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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
6d5fd7d9
Commit
6d5fd7d9
authored
Jul 11, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub omniauth provider for GitLab
parent
78018829
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
spec/lib/gitlab/gitlab_import/importer_spec.rb
spec/lib/gitlab/gitlab_import/importer_spec.rb
+6
-1
No files found.
spec/lib/gitlab/gitlab_import/importer_spec.rb
View file @
6d5fd7d9
require
'spec_helper'
describe
Gitlab
::
GitlabImport
::
Importer
,
lib:
true
do
include
ImportSpecHelper
describe
'#execute'
do
it
'persists issues'
do
before
do
stub_omniauth_provider
(
'gitlab'
)
stub_request
(
'issues'
,
[
{
'id'
=>
2579857
,
...
...
@@ -17,7 +20,9 @@ describe Gitlab::GitlabImport::Importer, lib: true do
}
])
stub_request
(
'issues/2579857/notes'
,
[])
end
it
'persists issues'
do
project
=
create
(
:empty_project
,
import_source:
'asd/vim'
)
project
.
build_import_data
(
credentials:
{
password:
'password'
})
...
...
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