summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-07-17 20:57:11 -0700
committerStan Hu <stanhu@gmail.com>2016-07-17 20:57:11 -0700
commit328da189d21673b7f8937d122363ef0c710f9ae9 (patch)
tree4f2b4b121fddbbf94262b5700c976ba31319f1e7
parent565b3a183978a7952ef92d2e1e05b429f38322fa (diff)
downloadgitlab-ce-allow-blank-import-url.tar.gz
Fix spec to set import_url before attempting to create import_dataallow-blank-import-url
-rw-r--r--spec/lib/gitlab/bitbucket_import/client_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/bitbucket_import/client_spec.rb b/spec/lib/gitlab/bitbucket_import/client_spec.rb
index 760d66a1488..7543c29bcc4 100644
--- a/spec/lib/gitlab/bitbucket_import/client_spec.rb
+++ b/spec/lib/gitlab/bitbucket_import/client_spec.rb
@@ -54,12 +54,12 @@ describe Gitlab::BitbucketImport::Client, lib: true do
context 'project import' do
it 'calls .from_project with no errors' do
project = create(:empty_project)
+ project.import_url = "ssh://git@bitbucket.org/test/test.git"
project.create_or_update_import_data(credentials:
{ user: "git",
password: nil,
bb_session: { bitbucket_access_token: "test",
bitbucket_access_token_secret: "test" } })
- project.import_url = "ssh://git@bitbucket.org/test/test.git"
expect { described_class.from_project(project) }.not_to raise_error
end