diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-26 21:55:23 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-26 21:55:23 -0700 |
commit | 079b490ad2106e83bf315c7f3e9ac5e1d60c0d0c (patch) | |
tree | 40475050deb720b2fe85d6fac49fb40a9865698a /spec/lib/bitbucket_server | |
parent | 02ceea7be8b035b3dc5bdbce40779f3c8c3dc947 (diff) | |
download | gitlab-ce-079b490ad2106e83bf315c7f3e9ac5e1d60c0d0c.tar.gz |
Fix failing specs
Diffstat (limited to 'spec/lib/bitbucket_server')
-rw-r--r-- | spec/lib/bitbucket_server/representation/pull_request_spec.rb | 4 |
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 |