debian-mirror-gitlab/spec/views/projects/settings/integrations/edit.html.haml_spec.rb
2022-07-23 20:15:48 +02:00

31 lines
580 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'projects/settings/integrations/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