Merge pull request #735 from codegram/change_default_locale
Use `en` as default locale on tests
This commit is contained in:
@@ -21,6 +21,7 @@ RSpec.configure do |config|
|
|||||||
config.before(:each) do |example|
|
config.before(:each) do |example|
|
||||||
DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction
|
DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction
|
||||||
DatabaseCleaner.start
|
DatabaseCleaner.start
|
||||||
|
I18n.locale = :en
|
||||||
load "#{Rails.root}/db/seeds.rb"
|
load "#{Rails.root}/db/seeds.rb"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user