From da96519a644ae949f0b1981796e81953b3933305 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Mon, 4 Jan 2021 20:05:47 +0900 Subject: [PATCH] Configure `Faker::Config.random = Random.new(0)` to avoid spec failure. The default configuration also finds the record whose name is `"Nereida Langworth"`. --- spec/spec_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 94f3333..0c4bf10 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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 }