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
Showing
- app/models/account.rb 4 additions, 8 deletionsapp/models/account.rb
- app/models/concerns/account_interactions.rb 6 additions, 0 deletionsapp/models/concerns/account_interactions.rb
- app/workers/pubsubhubbub/distribution_worker.rb 1 addition, 1 deletionapp/workers/pubsubhubbub/distribution_worker.rb
- spec/models/account_spec.rb 347 additions, 64 deletionsspec/models/account_spec.rb
- spec/support/examples/models/concerns/account_avatar.rb 19 additions, 0 deletionsspec/support/examples/models/concerns/account_avatar.rb
This diff is collapsed.
Please register or sign in to comment