summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-11 19:03:06 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-13 11:35:38 -0300
commit6d5fd7d9b71b975be937671f2ca4dd7b3b57f8b2 (patch)
tree211a29d09b441463a4a794e162a56830be0892cf
parent780188296ad850b11f43ef7e25e067be219cbb39 (diff)
downloadgitlab-ce-gl-importer-keeps-issue-number.tar.gz
Stub omniauth provider for GitLabgl-importer-keeps-issue-number
-rw-r--r--spec/lib/gitlab/gitlab_import/importer_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/lib/gitlab/gitlab_import/importer_spec.rb b/spec/lib/gitlab/gitlab_import/importer_spec.rb
index 5fa81b9716a..d3f1deb3837 100644
--- a/spec/lib/gitlab/gitlab_import/importer_spec.rb
+++ b/spec/lib/gitlab/gitlab_import/importer_spec.rb
@@ -1,8 +1,11 @@
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' })