Fix FactoryBot for next-minor
This commit is contained in:
parent
8691e650dc
commit
b2ba0123e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue