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
Léo-Paul Géneau
gitlab-ce
Commits
079b490a
Commit
079b490a
authored
Jul 26, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing specs
parent
02ceea7b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
spec/controllers/import/bitbucket_server_controller_spec.rb
spec/controllers/import/bitbucket_server_controller_spec.rb
+2
-2
spec/lib/bitbucket_server/representation/pull_request_spec.rb
.../lib/bitbucket_server/representation/pull_request_spec.rb
+2
-2
No files found.
spec/controllers/import/bitbucket_server_controller_spec.rb
View file @
079b490a
...
@@ -119,8 +119,8 @@ describe Import::BitbucketServerController do
...
@@ -119,8 +119,8 @@ describe Import::BitbucketServerController do
before
do
before
do
allow
(
controller
).
to
receive
(
:bitbucket_client
).
and_return
(
client
)
allow
(
controller
).
to
receive
(
:bitbucket_client
).
and_return
(
client
)
@repo
=
double
(
slug:
'vim'
,
owner
:
'asd'
,
full_name:
'asd/vim'
,
"valid?"
=>
true
,
project_name:
'asd'
,
browse_url:
'http://test'
,
name:
'vim'
)
@repo
=
double
(
slug:
'vim'
,
project_key
:
'asd'
,
full_name:
'asd/vim'
,
"valid?"
=>
true
,
project_name:
'asd'
,
browse_url:
'http://test'
,
name:
'vim'
)
@invalid_repo
=
double
(
slug:
'invalid'
,
owner
:
'foobar'
,
full_name:
'asd/foobar'
,
"valid?"
=>
false
,
browse_url:
'http://bad-repo'
)
@invalid_repo
=
double
(
slug:
'invalid'
,
project_key
:
'foobar'
,
full_name:
'asd/foobar'
,
"valid?"
=>
false
,
browse_url:
'http://bad-repo'
)
assign_session_tokens
assign_session_tokens
end
end
...
...
spec/lib/bitbucket_server/representation/pull_request_spec.rb
View file @
079b490a
...
@@ -50,11 +50,11 @@ describe BitbucketServer::Representation::PullRequest do
...
@@ -50,11 +50,11 @@ describe BitbucketServer::Representation::PullRequest do
end
end
describe
'#created_at'
do
describe
'#created_at'
do
it
{
expect
(
subject
.
created_at
).
to
eq
(
Time
.
parse
(
'2018-07-02 23:50:35'
)
)
}
it
{
expect
(
subject
.
created_at
.
to_i
).
to
eq
(
sample_data
[
'createdDate'
]
/
1000
)
}
end
end
describe
'#updated_at'
do
describe
'#updated_at'
do
it
{
expect
(
subject
.
updated_at
).
to
eq
(
Time
.
parse
(
'2018-07-02 23:50:48'
)
)
}
it
{
expect
(
subject
.
updated_at
.
to_i
).
to
eq
(
sample_data
[
'updatedDate'
]
/
1000
)
}
end
end
describe
'#title'
do
describe
'#title'
do
...
...
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