Skip to content

Commit 152cbc1

Browse files
committed
fix specs
1 parent 3a406de commit 152cbc1

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

spec/factories/template_folders.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
account
66

77
author factory: %i[user]
8-
name { Faker::Book.title }
8+
name { Faker::Book.unique.title }
99

1010
trait :with_templates do
1111
after(:create) do |template_folder|

spec/factories/templates.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
account
66

77
author factory: %i[user]
8-
name { Faker::Book.title }
8+
name { Faker::Book.unique.title }
99

1010
transient do
1111
submitter_count { 1 }

spec/rails_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565

6666
config.before do
6767
Sidekiq::Worker.clear_all
68+
Faker::UniqueGenerator.clear
6869
end
6970

7071
config.before do |example|

0 commit comments

Comments
 (0)