diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 623c87af8..6a41d3472 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -811,7 +811,7 @@ describe User, :type => :model do context "with autofollow sharing enabled" do it "should start sharing with autofollow account" do AppConfig.settings.autofollow_on_join = true - person = FactoryBot.build(:person) + person = FactoryGirl.build(:person) 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)