mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Start of handling FeatureRequest activities (#38193)
This commit is contained in:
@@ -17,8 +17,9 @@ RSpec.describe CollectionItem do
|
||||
end
|
||||
|
||||
context 'when item is not local' do
|
||||
subject { Fabricate.build(:collection_item, collection: remote_collection) }
|
||||
subject { Fabricate.build(:collection_item, collection: remote_collection, account:) }
|
||||
|
||||
let(:account) { Fabricate.build(:remote_account) }
|
||||
let(:remote_collection) { Fabricate.build(:collection, local: false) }
|
||||
|
||||
it { is_expected.to validate_presence_of(:uri) }
|
||||
@@ -28,6 +29,12 @@ RSpec.describe CollectionItem do
|
||||
|
||||
it { is_expected.to validate_presence_of(:approval_uri) }
|
||||
end
|
||||
|
||||
context 'when account is local' do
|
||||
let(:account) { Fabricate.build(:account) }
|
||||
|
||||
it { is_expected.to_not validate_presence_of(:uri) }
|
||||
end
|
||||
end
|
||||
|
||||
context 'when account is not present' do
|
||||
|
||||
Reference in New Issue
Block a user