0
0
Fork 0

Set and store report URIs (#10303)

Fixes #10271
This commit is contained in:
ThibG 2019-03-17 15:34:56 +01:00 committed by Eugen Rochko
parent 5e38ef87a7
commit a20354a20b
8 changed files with 52 additions and 6 deletions

View file

@ -21,6 +21,11 @@ RSpec.describe ReportService, type: :service do
subject.call(source_account, remote_account, forward: false)
expect(a_request(:post, 'http://example.com/inbox')).to_not have_been_made
end
it 'has an uri' do
report = subject.call(source_account, remote_account, forward: true)
expect(report.uri).to_not be_nil
end
end
context 'when other reports already exist for the same target' do