2020-01-01 13:55:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe 'projects/services/edit' do
|
2021-09-04 01:27:46 +05:30
|
|
|
let(:integration) { create(:drone_ci_integration, project: project) }
|
2020-01-01 13:55:28 +05:30
|
|
|
let(:project) { create(:project) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
assign :project, project
|
2021-09-04 01:27:46 +05:30
|
|
|
assign :integration, integration
|
2020-01-01 13:55:28 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
it do
|
|
|
|
render
|
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
expect(rendered).not_to have_text('Recent events')
|
2020-01-01 13:55:28 +05:30
|
|
|
end
|
|
|
|
|
2021-09-04 01:27:46 +05:30
|
|
|
context 'integration using WebHooks' do
|
2020-01-01 13:55:28 +05:30
|
|
|
before do
|
|
|
|
assign(:web_hook_logs, [])
|
|
|
|
end
|
|
|
|
|
|
|
|
it do
|
|
|
|
render
|
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
expect(rendered).to have_text('Recent events')
|
2020-01-01 13:55:28 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|