Skip to content

Commit 85d724e

Browse files
authored
Merge pull request #3511 from DMPRoadmap/aaron/issues/update-faker-locale
Update `spec/support/faker.rb` Assignments to Use `I18n.default_locale`
2 parents 9209fce + a69e9dd commit 85d724e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

spec/support/faker.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
require 'faker'
44

5-
# Keep this as :en. Faker doesn't have :en-GB
6-
LOCALE = 'en'
7-
85
RSpec.configure do |config|
96
config.before(:each) do
10-
I18n.locale = LOCALE
11-
Faker::Config.locale = LOCALE
12-
I18n.default_locale = LOCALE
7+
I18n.locale = I18n.default_locale
8+
Faker::Config.locale = I18n.default_locale
139
end
1410

1511
config.after(:each) do

0 commit comments

Comments
 (0)