Fix Person spec to prepare ruby upgrade

This commit is contained in:
Benjamin Neff 2024-05-30 19:48:04 +02:00
parent 8b6adee359
commit 02f8629254
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -30,13 +30,15 @@ describe Person, type: :model do
describe ".local" do
it "returns only local people" do
Person.local =~ [@person]
expect(Person.local.map(&:id)).to include(@user.person.id)
expect(Person.local.map(&:id)).to_not include(@person.id)
end
end
describe ".remote" do
it "returns only local people" do
Person.remote =~ [@user.person]
it "returns only remote people" do
expect(Person.remote.map(&:id)).to include(@person.id)
expect(Person.remote.map(&:id)).to_not include(@user.person.id)
end
end