Commit 079b490a authored by Stan Hu's avatar Stan Hu

Fix failing specs

parent 02ceea7b
......@@ -119,8 +119,8 @@ describe Import::BitbucketServerController do
before do
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')
@invalid_repo = double(slug: 'invalid', owner: 'foobar', full_name: 'asd/foobar', "valid?" => false, browse_url: 'http://bad-repo')
@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', project_key: 'foobar', full_name: 'asd/foobar', "valid?" => false, browse_url: 'http://bad-repo')
assign_session_tokens
end
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment