mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-21 23:44:30 +00:00
Add test
This commit is contained in:
parent
de102755f8
commit
f8f53edb76
1 changed files with 12 additions and 0 deletions
|
@ -48,6 +48,18 @@ defmodule Mobilizon.Service.ICalendarTest do
|
|||
refute ics =~ event2.title
|
||||
assert ics =~ event3.title
|
||||
end
|
||||
|
||||
test "with 50 events" do
|
||||
Enum.each(0..50, fn i ->
|
||||
%Event{} = insert(:event, title: "Event #{i}")
|
||||
end)
|
||||
|
||||
{:commit, ics} = ICalendarService.create_cache("instance")
|
||||
|
||||
Enum.each(0..50, fn i ->
|
||||
assert ics =~ "Event #{i}"
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
describe "export an actor's events from a token" do
|
||||
|
|
Loading…
Reference in a new issue