Skip to content

Commit

Permalink
update for federails actor method name change
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Nov 27, 2024
1 parent 169d328 commit 98df134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/reports_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
} }

it "should accept Flag activities" do
post user.actor.inbox_url, params: report_body, as: :json
post user.federails_actor.inbox_url, params: report_body, as: :json
expect(response.status).to eq 201
end

it "should call registered Report handler when a flag is received by Federails" do
expect(Federails::Moderation::ReportCreationService).to receive(:call).once { |args|
expect(args["content"]).to eq "Test, please ignore"
}
post user.actor.inbox_url, params: report_body, as: :json
post user.federails_actor.inbox_url, params: report_body, as: :json
end
end

0 comments on commit 98df134

Please sign in to comment.