blob: 372ccf82a689453d113e003071a50841edf28b27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'projects/services/edit' do
let(:integration) { create(:drone_ci_integration, project: project) }
let(:project) { create(:project) }
before do
assign :project, project
assign :integration, integration
end
it do
render
expect(rendered).not_to have_text('Recent events')
end
context 'integration using WebHooks' do
before do
assign(:web_hook_logs, [])
end
it do
render
expect(rendered).to have_text('Recent events')
end
end
end
|