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
328da189
Commit
328da189
authored
Jul 17, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec to set import_url before attempting to create import_data
parent
565b3a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
spec/lib/gitlab/bitbucket_import/client_spec.rb
spec/lib/gitlab/bitbucket_import/client_spec.rb
+1
-1
No files found.
spec/lib/gitlab/bitbucket_import/client_spec.rb
View file @
328da189
...
@@ -54,12 +54,12 @@ describe Gitlab::BitbucketImport::Client, lib: true do
...
@@ -54,12 +54,12 @@ describe Gitlab::BitbucketImport::Client, lib: true do
context
'project import'
do
context
'project import'
do
it
'calls .from_project with no errors'
do
it
'calls .from_project with no errors'
do
project
=
create
(
:empty_project
)
project
=
create
(
:empty_project
)
project
.
import_url
=
"ssh://git@bitbucket.org/test/test.git"
project
.
create_or_update_import_data
(
credentials:
project
.
create_or_update_import_data
(
credentials:
{
user:
"git"
,
{
user:
"git"
,
password:
nil
,
password:
nil
,
bb_session:
{
bitbucket_access_token:
"test"
,
bb_session:
{
bitbucket_access_token:
"test"
,
bitbucket_access_token_secret:
"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
expect
{
described_class
.
from_project
(
project
)
}.
not_to
raise_error
end
end
...
...
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