Clean up of RSpec/LetSetup
within spec/lib
(#28447)
This commit is contained in:
parent
cd64a5b2ec
commit
c99f88e1a8
4 changed files with 12 additions and 7 deletions
|
@ -50,6 +50,10 @@ RSpec.describe ActivityPub::Activity::Delete do
|
|||
it 'sends delete activity to followers of rebloggers' do
|
||||
expect(a_request(:post, 'http://example.com/inbox')).to have_been_made.once
|
||||
end
|
||||
|
||||
it 'deletes the reblog' do
|
||||
expect { reblog.reload }.to raise_error(ActiveRecord::RecordNotFound)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue