Sha256: dc4ce257b9dd5068ba852eaddac62b3cab9104dbc088fdd6682c3d5aac302d7c

Contents?: true

Size: 878 Bytes

Versions: 4

Compression:

Stored size: 878 Bytes

Contents

# encoding: utf-8
# Now there are support only for "active_record"
ENV["ORM"] = "active_record"

require 'header'

if ENV["ORM"] == "active_record"
  require 'ar_schema'
end

require 'rails_helper'

unless ENV['CI']
  require 'byebug'
end

require 'logger'

# setup I18n
I18n.available_locales = [:en,:lv,:ru,:fr]
I18n.default_locale = :lv
I18n.locale = :en
Lolita.locales = I18n.available_locales


RSpec.configure do |config|
  config.before(:each) do
    if ENV["ORM"] == "active_record"
      ::ARSchema.clean!
    end
    config.treat_symbols_as_metadata_keys_with_true_values = true
    config.mock_with :rspec
    config.order = 'rand:3455'
    config.use_transactional_fixtures = true
  end
end

at_exit do
  if File.exist?(File.expand_path("spec/test_app/db/lolita-translation.db"))
    File.delete(File.expand_path("spec/test_app/db/lolita-translation.db"))
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lolita-translation-0.7.3 spec/spec_helper.rb
lolita-translation-0.7.2 spec/spec_helper.rb
lolita-translation-0.7.1 spec/spec_helper.rb
lolita-translation-0.7.0 spec/spec_helper.rb