0
0
Fork 0

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:
Akihiko Odaki (@fn_aki@pawoo.net) 2017-06-04 21:59:40 +09:00 committed by Eugen Rochko
parent c7af8cbc90
commit e674608d10
7 changed files with 153 additions and 1 deletions

View file

@ -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