From e963ab4bd4fa5861b51e923c3b757bf06137a2fe Mon Sep 17 00:00:00 2001 From: Arun Kumar Mohan Date: Tue, 13 Oct 2020 01:21:47 -0500 Subject: [PATCH] Replace FactoryBot.create with create --- spec/models/enterprise_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/enterprise_spec.rb b/spec/models/enterprise_spec.rb index e3f9ee9561..d1281a84f1 100644 --- a/spec/models/enterprise_spec.rb +++ b/spec/models/enterprise_spec.rb @@ -113,7 +113,7 @@ describe Enterprise do describe "validations" do it { is_expected.to validate_presence_of(:name) } it do - FactoryBot.create(:distributor_enterprise) + create(:distributor_enterprise) is_expected.to validate_uniqueness_of(:permalink) end