Configure `Faker::Config.random = Random.new(0)` to avoid spec failure.

The default configuration also finds the record whose name is `"Nereida Langworth"`.
This commit is contained in:
Yasuo Honda 2021-01-04 20:05:47 +09:00
parent d2efd4c75a
commit da96519a64
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ I18n.load_path += Dir[File.join(File.dirname(__FILE__), 'support', '*.yml')]
Dir[File.expand_path('../{helpers,support,blueprints}/*.rb', __FILE__)]
.each { |f| require f }
Faker::Config.random = Random.new(0)
Sham.define do
name { Faker::Name.name }
title { Faker::Lorem.sentence }