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
af692628
Commit
af692628
authored
Nov 20, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bitbucket status controller spec
parent
7ba65d05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
spec/controllers/import/bitbucket_controller_spec.rb
spec/controllers/import/bitbucket_controller_spec.rb
+3
-4
No files found.
spec/controllers/import/bitbucket_controller_spec.rb
View file @
af692628
...
...
@@ -47,14 +47,13 @@ describe Import::BitbucketController do
describe
"GET status"
do
before
do
@repo
=
OpenStruct
.
new
(
slug:
'vim'
,
owner:
'asd'
)
@repo
=
double
(
slug:
'vim'
,
owner:
'asd'
,
full_name:
'asd/vim'
,
"valid?"
=>
true
)
assign_session_tokens
end
it
"assigns variables"
do
@project
=
create
(
:project
,
import_type:
'bitbucket'
,
creator_id:
user
.
id
)
client
=
stub_client
(
projects:
[
@repo
])
allow
(
client
).
to
receive
(
:incompatible_projects
).
and_return
([])
allow_any_instance_of
(
Bitbucket
::
Client
).
to
receive
(
:repos
).
and_return
([
@repo
])
get
:status
...
...
@@ -65,7 +64,7 @@ describe Import::BitbucketController do
it
"does not show already added project"
do
@project
=
create
(
:project
,
import_type:
'bitbucket'
,
creator_id:
user
.
id
,
import_source:
'asd/vim'
)
stub_client
(
projects:
[
@repo
])
allow_any_instance_of
(
Bitbucket
::
Client
).
to
receive
(
:repos
).
and_return
(
[
@repo
])
get
:status
...
...
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