2017-09-10 17:25:29 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'projects/commits/_commit.html.haml' do
|
2018-03-17 18:26:18 +05:30
|
|
|
before do
|
|
|
|
allow(view).to receive(:current_application_settings).and_return(Gitlab::CurrentSettings.current_application_settings)
|
|
|
|
end
|
|
|
|
|
2019-05-30 16:15:17 +05:30
|
|
|
context 'with a singed commit' do
|
|
|
|
let(:project) { create(:project, :repository) }
|
|
|
|
let(:repository) { project.repository }
|
2017-09-10 17:25:29 +05:30
|
|
|
let(:ref) { GpgHelpers::SIGNED_COMMIT_SHA }
|
2019-05-30 16:15:17 +05:30
|
|
|
let(:commit) { repository.commit(ref) }
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
it 'does not display a loading spinner for GPG status' do
|
|
|
|
render partial: 'projects/commits/commit', locals: {
|
|
|
|
project: project,
|
|
|
|
ref: ref,
|
|
|
|
commit: commit
|
|
|
|
}
|
|
|
|
|
|
|
|
within '.gpg-status-box' do
|
|
|
|
expect(page).not_to have_css('i.fa.fa-spinner.fa-spin')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|