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
ProjectServiceWorker.perform_async(id, data)
end
def external_wiki?
type == 'ExternalWikiService' && active?
end
# override if needed
def supports_data_fields?
false
......
......@@ -896,20 +896,6 @@ RSpec.describe Integration do
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
it 'calls the right methods' do
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