Use en as default locale on tests

This commit is contained in:
Josep Jaume Rey Peroy
2015-11-27 14:59:17 +01:00
parent 7e5cfffe67
commit c83b1804e2

View File

@@ -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