diff --git a/db/seeds.rb b/db/seeds.rb index 1002c91..16d57b8 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -185,7 +185,7 @@ password: "password123", password_confirmation: "password123", org: Org.find_by(abbreviation: Rails.configuration.branding[:organisation][:abbreviation]), - language: Language.find_by(abbreviation: I18n.locale), + language: Language.find_by(abbreviation: FastGettext.locale), perms: Perm.all, accept_terms: true, confirmed_at: Time.zone.now}, @@ -195,7 +195,7 @@ password: "password123", password_confirmation: "password123", org: Org.find_by(abbreviation: 'GA'), - language: Language.find_by(abbreviation: I18n.locale), + language: Language.find_by(abbreviation: FastGettext.locale), perms: Perm.where.not(name: ['admin', 'add_organisations', 'change_org_affiliation', 'grant_api_to_orgs']), accept_terms: true, confirmed_at: Time.zone.now}, @@ -205,7 +205,7 @@ password: "password123", password_confirmation: "password123", org: Org.find_by(abbreviation: 'UOS'), - language: Language.find_by(abbreviation: I18n.locale), + language: Language.find_by(abbreviation: FastGettext.locale), perms: Perm.where.not(name: ['admin', 'add_organisations', 'change_org_affiliation', 'grant_api_to_orgs']), accept_terms: true, confirmed_at: Time.zone.now}, @@ -215,7 +215,7 @@ password: "password123", password_confirmation: "password123", org: Org.find_by(abbreviation: 'UOS'), - language: Language.find_by(abbreviation: I18n.locale), + language: Language.find_by(abbreviation: FastGettext.locale), accept_terms: true, confirmed_at: Time.zone.now} ] diff --git a/test/test_helper.rb b/test/test_helper.rb index 71e7c8f..bb5f512 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -38,7 +38,7 @@ def org_admin_from(org) usr = org.users.select{|u| u.can_org_admin?}.first usr = User.create!(email: "admin@example.com", firstname: "Org", surname: "Admin", - language: Language.find_by(abbreviation: I18n.locale), + language: Language.find_by(abbreviation: FastGettext.locale), password: "password123", password_confirmation: "password123", perms: Perm.where.not(name: ['admin', 'add_organisations', 'change_org_affiliation', 'grant_api_to_orgs']), org: org, accept_terms: true, confirmed_at: Time.zone.now) if usr.nil?