mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Replace FactoryBot.create with create
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user