chinwagsocial/spec
Matt Jankowski 21a767dcfa Improve handling of HTTP_ACCEPT for webfinger (#2008)
This change includes:

- Improve the spec coverage for incoming request to the webfinger action
- For requests without an accept header (ie, what a browser might look like),
  return a JSON response.
- For requests with an explicit format of xml or json, return that format.
- For requests using an accept header, return that format.

Also adds failing spec showing webfinger does not return xml, which covers the
issue described in: https://github.com/tootsuite/mastodon/issues/1983
2017-04-17 19:58:03 +02:00
..
controllers Assign user locale on signup (#1982) 2017-04-17 10:29:08 +02:00
fabricators Refresh webfinger (#1323) 2017-04-15 03:16:05 +02:00
features Introduce capybara and first feature spec (#1801) 2017-04-15 01:21:02 +02:00
fixtures Imports controller errors (#1553) 2017-04-11 21:40:14 +02:00
helpers View spec fix (#1888) 2017-04-16 03:40:33 +02:00
javascript Add unit tests for https://github.com/tootsuite/mastodon/pull/1574 (#1584) 2017-04-12 17:16:59 +02:00
lib Fix tests issue introduced in #1607 (#1639) 2017-04-13 02:17:40 +02:00
mailers Add digest e-mails 2017-03-04 00:00:48 +01:00
models Add recovery code support for two-factor auth (#1773) 2017-04-15 13:26:03 +02:00
presenters About page contact email (#1839) 2017-04-15 13:33:25 +02:00
requests Improve handling of HTTP_ACCEPT for webfinger (#2008) 2017-04-17 19:58:03 +02:00
routing Improve handling of HTTP_ACCEPT for webfinger (#2008) 2017-04-17 19:58:03 +02:00
services Fix nil query_username (#2013) 2017-04-17 19:57:02 +02:00
support/matchers/model add more tests to models 2017-04-05 00:29:56 +02:00
views Make file attachment on MediaAttachment optional (#1865) 2017-04-16 12:51:30 +02:00
i18n_spec.rb Improve docs 2017-02-11 16:21:07 +01:00
rails_helper.rb Silence Devise deprecation warning about TestHelpers (#1840) 2017-04-15 13:30:57 +02:00
spec_helper.rb View spec fix (#1888) 2017-04-16 03:40:33 +02:00