Skip to content

Commit

Permalink
fixup! Add UK-specific excluded calculated homepage domains
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Oct 19, 2023
1 parent 32ca854 commit dd95099
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model_patches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def late_calculator
prepend ProAccountBans::ModelMethods
end

PublicBody.excluded_calculated_home_page_domains << %w[
PublicBody.excluded_calculated_home_page_domains += %w[
aol.co.uk
blueyonder.co.uk
btconnect.com
Expand Down
15 changes: 15 additions & 0 deletions spec/public_body_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require_relative 'spec_helper'

RSpec.describe PublicBody do
describe '.excluded_calculated_home_page_domains' do
subject { described_class.excluded_calculated_home_page_domains }

it 'includes default global domains' do
is_expected.to include('aol.com')
end

it 'includes expected localise domains' do
is_expected.to include('aol.co.uk')
end
end
end

0 comments on commit dd95099

Please sign in to comment.