Stub omniauth provider for GitLab

parent 78018829
require 'spec_helper' require 'spec_helper'
describe Gitlab::GitlabImport::Importer, lib: true do describe Gitlab::GitlabImport::Importer, lib: true do
include ImportSpecHelper
describe '#execute' do describe '#execute' do
it 'persists issues' do before do
stub_omniauth_provider('gitlab')
stub_request('issues', [ stub_request('issues', [
{ {
'id' => 2579857, 'id' => 2579857,
...@@ -17,7 +20,9 @@ describe Gitlab::GitlabImport::Importer, lib: true do ...@@ -17,7 +20,9 @@ describe Gitlab::GitlabImport::Importer, lib: true do
} }
]) ])
stub_request('issues/2579857/notes', []) stub_request('issues/2579857/notes', [])
end
it 'persists issues' do
project = create(:empty_project, import_source: 'asd/vim') project = create(:empty_project, import_source: 'asd/vim')
project.build_import_data(credentials: { password: 'password' }) project.build_import_data(credentials: { password: 'password' })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment