|
|
@ -265,6 +265,18 @@ RSpec.describe Status, type: :model do |
|
|
|
expect(results).not_to include(fr_status) |
|
|
|
end |
|
|
|
|
|
|
|
it 'includes all languages when user does not have a setting' do |
|
|
|
user = Fabricate(:user, allowed_languages: []) |
|
|
|
@account.update(user: user) |
|
|
|
|
|
|
|
en_status = Fabricate(:status, language: 'en') |
|
|
|
es_status = Fabricate(:status, language: 'es') |
|
|
|
|
|
|
|
results = Status.as_public_timeline(@account) |
|
|
|
expect(results).to include(en_status) |
|
|
|
expect(results).to include(es_status) |
|
|
|
end |
|
|
|
|
|
|
|
it 'includes all languages when account does not have a user' do |
|
|
|
expect(@account.user).to be_nil |
|
|
|
en_status = Fabricate(:status, language: 'en') |
|
|
|