require 'rspec'
require 'simple_localizer'
require 'database_cleaner'
require 'pp'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../dummy/config/environment", __FILE__)

I18n.config.available_locales_set.add :ru
I18n.config.available_locales_set.add :en
I18n.default_locale = :ru
I18n.locale         = :en

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :transaction
  end

  config.before(:each) do
    DatabaseCleaner.start
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
end