* Add: #699 引用・参照対応サーバーをAPIで取得 * Complete * ごめん
This commit is contained in:
parent
78b2707c08
commit
1c054ed3a3
22 changed files with 129 additions and 29 deletions
|
@ -3,8 +3,12 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe InstanceInfo do
|
||||
describe '.emoji_reaction_availables_map' do
|
||||
subject { described_class.emoji_reaction_available?('example.com') }
|
||||
describe '.available_features' do
|
||||
subject { described_class.available_features('example.com')[:emoji_reaction] }
|
||||
|
||||
it 'availables if local account' do
|
||||
expect(described_class.available_features(nil)[:emoji_reaction]).to be true
|
||||
end
|
||||
|
||||
it 'availables if features contains emoji_reaction' do
|
||||
Fabricate(:instance_info, domain: 'example.com', software: 'mastodon', data: { metadata: { features: ['emoji_reaction'] } })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue