diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-09 14:00:55 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-09 14:00:55 +0100 |
commit | 75f80bef107cfe9e9c0e6ba3dc51ef86c89e40cc (patch) | |
tree | d507368baac4e85d417af4c64ecc0d9c43a65963 /spec/models | |
parent | 23ebf60b95984764992c4b356048786ed0ab2953 (diff) |
Persist UI settings, add missing localizations for German
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/account_spec.rb | 25 | ||||
-rw-r--r-- | spec/models/web/setting_spec.rb | 5 |
2 files changed, 30 insertions, 0 deletions
diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index a72369b1c..287f389ac 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -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 } diff --git a/spec/models/web/setting_spec.rb b/spec/models/web/setting_spec.rb new file mode 100644 index 000000000..90e7695aa --- /dev/null +++ b/spec/models/web/setting_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe Web::Setting, type: :model do + +end |