A minor change for ProviderDiscovery and spec (#3543)
* Do not default the format in ProviderDiscovery The format should be determined when discovering, as it is in the current implementation, and it is a flaw if it is not determined. * Spec ProviderDiscovery
This commit is contained in:
parent
c7af8cbc90
commit
e674608d10
7 changed files with 153 additions and 1 deletions
|
@ -31,7 +31,7 @@ class ProviderDiscovery < OEmbed::ProviderDiscovery
|
|||
raise OEmbed::NotFound, url
|
||||
end
|
||||
|
||||
OEmbed::Provider.new(provider_endpoint, format || OEmbed::Formatter.default)
|
||||
OEmbed::Provider.new(provider_endpoint, format)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue