mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Ignore OneBox blacklisted domains.
This commit is contained in:
@@ -47,6 +47,14 @@ describe FinalDestination do
|
||||
FinalDestination.new(url, opts)
|
||||
end
|
||||
|
||||
it 'correctly parses ignored hostnames' do
|
||||
fd = FinalDestination.new('https://meta.discourse.org',
|
||||
ignore_redirects: ['http://google.com', 'youtube.com', 'https://meta.discourse.org', '://bing.com']
|
||||
)
|
||||
|
||||
expect(fd.ignored).to eq(['test.localhost', 'google.com', 'meta.discourse.org'])
|
||||
end
|
||||
|
||||
describe '.resolve' do
|
||||
|
||||
it "has a ready status code before anything happens" do
|
||||
|
||||
Reference in New Issue
Block a user