Commit 292efa53 authored by Luke Duncalfe's avatar Luke Duncalfe

Remove unused Integration#external_wiki? method

parent 692580fe
...@@ -480,10 +480,6 @@ class Integration < ApplicationRecord ...@@ -480,10 +480,6 @@ class Integration < ApplicationRecord
ProjectServiceWorker.perform_async(id, data) ProjectServiceWorker.perform_async(id, data)
end end
def external_wiki?
type == 'ExternalWikiService' && active?
end
# override if needed # override if needed
def supports_data_fields? def supports_data_fields?
false false
......
...@@ -896,20 +896,6 @@ RSpec.describe Integration do ...@@ -896,20 +896,6 @@ RSpec.describe Integration do
end end
end end
describe '#external_wiki?' do
where(:type, :active, :result) do
'ExternalWikiService' | true | true
'ExternalWikiService' | false | false
'SlackService' | true | false
end
with_them do
it 'returns the right result' do
expect(create(:service, type: type, active: active).external_wiki?).to eq(result)
end
end
end
describe '.available_services_names' do describe '.available_services_names' do
it 'calls the right methods' do it 'calls the right methods' do
expect(described_class).to receive(:services_names).and_call_original expect(described_class).to receive(:services_names).and_call_original
......
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