Fix FactoryBot for next-minor

This commit is contained in:
Benjamin Neff 2021-08-16 01:02:08 +02:00
parent 8691e650dc
commit b2ba0123e1
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -811,7 +811,7 @@ describe User, :type => :model do
context "with autofollow sharing enabled" do context "with autofollow sharing enabled" do
it "should start sharing with autofollow account" do it "should start sharing with autofollow account" do
AppConfig.settings.autofollow_on_join = true AppConfig.settings.autofollow_on_join = true
person = FactoryBot.build(:person) person = FactoryGirl.build(:person)
AppConfig.settings.autofollow_on_join_user = person.diaspora_handle AppConfig.settings.autofollow_on_join_user = person.diaspora_handle
expect(Person).to receive(:find_or_fetch_by_identifier).with(person.diaspora_handle).and_return(person) expect(Person).to receive(:find_or_fetch_by_identifier).with(person.diaspora_handle).and_return(person)