spec/spec_helper.rb in sequel-rails-0.9.6 vs spec/spec_helper.rb in sequel-rails-0.9.7

- old
+ new

@@ -18,9 +18,19 @@ rspec_exclusions[:mysql] = !%w(mysql mysql2).include?(ENV['TEST_ADAPTER']) rspec_exclusions[:sqlite] = ENV['TEST_ADAPTER'] != 'sqlite3' RSpec.configure do |config| config.filter_run_excluding rspec_exclusions + + config.before(:all) do + I18n.backend.store_translations( + :en, + 'sequel' => { + 'models' => { + 'user' => 'translated user' } + }) + end + config.around :each do |example| if example.metadata[:no_transaction] example.run else Sequel::Model.db.transaction(:rollback => :always) do