diff --git a/Gemfile b/Gemfile index a53c6df..afead8c 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source "https://rubygems.org" gem "activesupport" gem "factory_bot" -gem "faker" +gem "faker", "~> 2.22.0" gem "puma" gem "sinatra" gem "sinatra-contrib" diff --git a/Gemfile.lock b/Gemfile.lock index ac71218..5ad6ab2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,7 +9,7 @@ GEM concurrent-ruby (1.2.2) factory_bot (6.2.1) activesupport (>= 5.0.0) - faker (3.2.0) + faker (2.22.0) i18n (>= 1.8.11, < 2) i18n (1.13.0) concurrent-ruby (~> 1.0) @@ -46,7 +46,7 @@ PLATFORMS DEPENDENCIES activesupport factory_bot - faker + faker (~> 2.22.0) puma sinatra sinatra-contrib diff --git a/factories/student.rb b/factories/student.rb index c497549..cc82322 100644 --- a/factories/student.rb +++ b/factories/student.rb @@ -6,6 +6,8 @@ require "faker" require "ostruct" +Faker::Config.locale = :fr + FactoryBot.define do factory :student, class: OpenStruct do # rubocop:disable Style/OpenStructUse ine { Faker::Number.number(digits: 10) }