mastodon/spec
Matt Jankowski f5cd138323 Improve i18n chooser (#1804)
* Add locale spec with failing locale plus region check

* Use a more accurate locale when supplied by browser headers

Previously we were using a matching option which would use the first locale
available which matched the locale portion, even if a region was specified.

This changes to first try to find an exact match, and then fall back to the
region, and then fall back to the  default.

* Clean up default_locale method
2017-04-15 01:12:39 +02:00
..
controllers Admin reports controller improvements (#1714) 2017-04-14 11:10:28 +02:00
fabricators Admin reports controller improvements (#1714) 2017-04-14 11:10:28 +02:00
fixtures Imports controller errors (#1553) 2017-04-11 21:40:14 +02:00
helpers Remove pending specs for methods that dont exist (#1658) 2017-04-13 02:51:13 +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
models Admin reports controller improvements (#1714) 2017-04-14 11:10:28 +02:00
presenters Clean up about page (#1282) 2017-04-09 14:47:25 +02:00
requests Improve i18n chooser (#1804) 2017-04-15 01:12:39 +02:00
routing Clean up well-known routes/controllers (#1649) 2017-04-13 13:09:07 +02:00
services Fix #1141, fix #1126 - Avatar/profile info fetching (#1215) 2017-04-08 13:26:03 +02:00
support/matchers/model
i18n_spec.rb
rails_helper.rb
spec_helper.rb Organize coverage dirs (#1695) 2017-04-13 16:00:31 +02:00