mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Merge commit '1d46558e8d949860acc4f3a86516b9989bd74f79' into glitch-soc/merge-upstream
Conflicts: - `spec/controllers/application_controller_spec.rb`: Upstream moved specs that were textually-adjacent to glitch-soc ones. Kept the glitch-soc ones.
This commit is contained in:
@@ -21,9 +21,13 @@ RSpec.describe CollectionItem do
|
||||
|
||||
let(:remote_collection) { Fabricate.build(:collection, local: false) }
|
||||
|
||||
it { is_expected.to validate_absence_of(:approval_uri) }
|
||||
|
||||
it { is_expected.to validate_presence_of(:uri) }
|
||||
|
||||
context 'when account is not present' do
|
||||
subject { Fabricate.build(:collection_item, collection: remote_collection, account: nil) }
|
||||
|
||||
it { is_expected.to validate_presence_of(:approval_uri) }
|
||||
end
|
||||
end
|
||||
|
||||
context 'when account is not present' do
|
||||
|
||||
Reference in New Issue
Block a user