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:
authorStan Hu <stanhu@gmail.com>2018-07-27 07:55:23 +0300
committerStan Hu <stanhu@gmail.com>2018-07-27 07:55:23 +0300
commit079b490ad2106e83bf315c7f3e9ac5e1d60c0d0c (patch)
tree40475050deb720b2fe85d6fac49fb40a9865698a /spec/lib/bitbucket_server
parent02ceea7be8b035b3dc5bdbce40779f3c8c3dc947 (diff)
Fix failing specs
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