Replace FactoryBot.create with create

This commit is contained in:
Arun Kumar Mohan
2020-10-13 01:21:47 -05:00
parent 14eee1c9e4
commit e963ab4bd4

View File

@@ -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