Sha256: 4e6770d14c991504d64cfdc852973395b08929c905d505ae4efe058040cd48d4
Contents?: true
Size: 849 Bytes
Versions: 8
Compression:
Stored size: 849 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $:.unshift(File.dirname(__FILE__)) require 'rails' require 'exvo_globalize' require File.join(File.dirname(__FILE__), 'app') require 'rspec/rails' require 'factory_girl_rails' require 'shoulda-matchers' I18n.load_path << "spec/fixtures/locales/en.yml" I18n.load_path << "spec/fixtures/locales/pl.yml" # Requires supporting ruby files with custom matchers and macros, etc. # in spec/support/ and its subdirectories. Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } RSpec.configure do |config| config.mock_with :rspec # run migrations config.before :all do CreateGlobalizeTranslations.up unless ActiveRecord::Base.connection.table_exists? 'globalize_translations' end # run each spec within a transaction config.use_transactional_fixtures = true end
Version data entries
8 entries across 8 versions & 1 rubygems