Persist UI settings, add missing localizations for German
This commit is contained in:
parent
23ebf60b95
commit
75f80bef10
25 changed files with 305 additions and 67 deletions
|
@ -1,2 +1,3 @@
|
|||
Fabricator(:media_attachment) do
|
||||
|
||||
end
|
||||
|
|
3
spec/fabricators/web_setting_fabricator.rb
Normal file
3
spec/fabricators/web_setting_fabricator.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
Fabricator('Web::Setting') do
|
||||
|
||||
end
|
|
@ -154,6 +154,31 @@ RSpec.describe Account, type: :model do
|
|||
end
|
||||
end
|
||||
|
||||
describe '.following_map' do
|
||||
it 'returns an hash' do
|
||||
expect(Account.following_map([], 1)).to be_a Hash
|
||||
end
|
||||
end
|
||||
|
||||
describe '.followed_by_map' do
|
||||
it 'returns an hash' do
|
||||
expect(Account.followed_by_map([], 1)).to be_a Hash
|
||||
end
|
||||
end
|
||||
|
||||
describe '.blocking_map' do
|
||||
it 'returns an hash' do
|
||||
expect(Account.blocking_map([], 1)).to be_a Hash
|
||||
end
|
||||
end
|
||||
|
||||
describe '.requested_map' do
|
||||
it 'returns an hash' do
|
||||
expect(Account.requested_map([], 1)).to be_a Hash
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
describe 'MENTION_RE' do
|
||||
subject { Account::MENTION_RE }
|
||||
|
||||
|
|
5
spec/models/web/setting_spec.rb
Normal file
5
spec/models/web/setting_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Web::Setting, type: :model do
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue