]> cat aescling's git repositories - mastodon.git/commit
A minor change for ProviderDiscovery and spec (#3543)
authorAkihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp>
Sun, 4 Jun 2017 12:59:40 +0000 (21:59 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 4 Jun 2017 12:59:40 +0000 (14:59 +0200)
commite674608d10e3c0381d2e8172580b36eb553b5279
treefecaab9d845cb1bdf7a93520d7b22320df4ed8f5
parentc7af8cbc9081f349461634db0a1d76bc689d8dd5
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
app/lib/provider_discovery.rb
spec/fixtures/requests/oembed_invalid_xml.html [new file with mode: 0644]
spec/fixtures/requests/oembed_json.html [new file with mode: 0644]
spec/fixtures/requests/oembed_json_xml.html [new file with mode: 0644]
spec/fixtures/requests/oembed_undiscoverable.html [new file with mode: 0644]
spec/fixtures/requests/oembed_xml.html [new file with mode: 0644]
spec/lib/provider_discovery_spec.rb [new file with mode: 0644]