Skip to content

Commit

Permalink
fix: Use Faker::Internet.email instead of free_email
Browse files Browse the repository at this point in the history
  • Loading branch information
toshimaru committed May 15, 2024
1 parent 95ee348 commit dc28976
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec/factories/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

FactoryBot.define do
factory :user do
sequence(:name) { Faker::Name.name }
name { Faker::Name.name }
sequence(:slug) { |n| "#{Faker::Internet.slug}-#{n}" }
sequence(:email) { |n| "#{n}-#{Faker::Internet.free_email}" }
sequence(:email) { |n| "#{n}-#{Faker::Internet.email}" }
password { "FactoryBot" }
password_confirmation { "FactoryBot" }
end
Expand Down
6 changes: 3 additions & 3 deletions spec/fixtures/users.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
fixture_user_1:
name: <%= Faker::Name.name %>
slug: <%= Faker::Internet.slug %>
email: <%= Faker::Internet.free_email %>
email: <%= Faker::Internet.email %>
password_digest: <%= User.digest('password') %>
fixture_user_2:
name: <%= Faker::Name.name %>
slug: <%= Faker::Internet.slug %>
email: <%= Faker::Internet.free_email %>
email: <%= Faker::Internet.email %>
password_digest: <%= User.digest('password') %>
tweet_user:
name: <%= Faker::Name.name %>
slug: <%= Faker::Internet.slug %>
email: <%= Faker::Internet.free_email %>
email: <%= Faker::Internet.email %>
password_digest: <%= User.digest('password') %>

0 comments on commit dc28976

Please sign in to comment.