Sha256: 3116082bbca455ad040ee82ac5b758385a1895950980fa60bf9dd92fd6fa1f39

Contents?: true

Size: 850 Bytes

Versions: 5

Compression:

Stored size: 850 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 transactions
  config.use_transactional_fixtures = true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
exvo_globalize-0.3.2 spec/spec_helper.rb
exvo_globalize-0.3.1 spec/spec_helper.rb
exvo_globalize-0.3.0 spec/spec_helper.rb
exvo_globalize-0.2.1 spec/spec_helper.rb
exvo_globalize-0.2.0 spec/spec_helper.rb