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:
parent
d2efd4c75a
commit
da96519a64
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue