mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
fix specs
This commit is contained in:
1 parent
3a406de655
commit
152cbc11a6
3 files changed
+3
-2
No files matched your search
@@ -5,7 +5,7 @@ FactoryBot.define do
|
|||||||
account
|
account
|
||||||
|
|
||||||
author factory: %i[user]
|
author factory: %i[user]
|
||||||
name { Faker::Book.title }
|
name { Faker::Book.unique.title }
|
||||||
|
|
||||||
trait :with_templates do
|
trait :with_templates do
|
||||||
after(:create) do |template_folder|
|
after(:create) do |template_folder|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ FactoryBot.define do
|
|||||||
account
|
account
|
||||||
|
|
||||||
author factory: %i[user]
|
author factory: %i[user]
|
||||||
name { Faker::Book.title }
|
name { Faker::Book.unique.title }
|
||||||
|
|
||||||
transient do
|
transient do
|
||||||
submitter_count { 1 }
|
submitter_count { 1 }
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ RSpec.configure do |config|
|
|||||||
|
|
||||||
config.before do
|
config.before do
|
||||||
Sidekiq::Worker.clear_all
|
Sidekiq::Worker.clear_all
|
||||||
|
Faker::UniqueGenerator.clear
|
||||||
end
|
end
|
||||||
|
|
||||||
config.before do |example|
|
config.before do |example|
|
||||||
|
|||||||
Reference in new issue
Block a user