1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-17 07:32:09 +00:00
Commit graph

2 commits

Author SHA1 Message Date
Matt Jankowski d1e08bd38c Handle nil and blank cases in Account finders () 2017-06-01 08:20:36 -04:00
Matt Jankowski 2cc3111a77 Expand spec coverage and refactor the Account.find_ methods ()
* Move specs for account finder methods to concern spec

* Move account finder methods to concern

* Improve spec wording

* Use more explicit comparison to ensure correct return value

* Add coverage for .find_local! and .find_remote!

* Add some methods to the finder

* Use arel on matching_username method

* Avoid ternary in matching domain method

* Simplify finder methods

* Use an AccountFinder class to simplify lookup
2017-05-31 20:28:45 +02:00