Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/bitbucket_server')
-rw-r--r--spec/lib/bitbucket_server/representation/pull_request_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/bitbucket_server/representation/pull_request_spec.rb b/spec/lib/bitbucket_server/representation/pull_request_spec.rb
index b84bb34dc9f..4b8afdb006b 100644
--- a/spec/lib/bitbucket_server/representation/pull_request_spec.rb
+++ b/spec/lib/bitbucket_server/representation/pull_request_spec.rb
@@ -50,11 +50,11 @@ describe BitbucketServer::Representation::PullRequest do
end
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
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
describe '#title' do