]> cat aescling's git repositories - mastodon.git/commit
Some minor change and spec for Account (#3813)
authorAkihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp>
Thu, 22 Jun 2017 16:34:27 +0000 (01:34 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 22 Jun 2017 16:34:27 +0000 (18:34 +0200)
commite27f792c24d1040246bc6ae890e6052f763cdb84
treee972824755126f84735d0f8757da289c51589c90
parent98fab24beada0bb681a25d9a48918f3ea903a90a
Some minor change and spec for Account (#3813)

* Introduce domains method to Account relation

Account had followers_domains method, which was excessively specific.
Let relation of Account have domains method instead.

* Move follow_mapping in Account to AccountInteractions

* Introduce shared examples for AccountAvatar inclusion

* Cover Account more
app/models/account.rb
app/models/concerns/account_interactions.rb
app/workers/pubsubhubbub/distribution_worker.rb
spec/models/account_spec.rb
spec/support/examples/models/concerns/account_avatar.rb [new file with mode: 0644]