Sha256: 1caaaa13926da4c60b8198257523fd8e0b4e63993bc9336abdd1ee3317ad5d43

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'enum_accessor'

RSpec.configure do |config|
  require 'active_record'
  ActiveRecord::Base.send(:include, EnumAccessor)

  # Establish in-memory database connection
  ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')

  # Load translation
  I18n.load_path << File.join(File.dirname(__FILE__), 'locales.yml')
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enum_accessor-0.2.0 spec/spec_helper.rb
enum_accessor-0.1.1 spec/spec_helper.rb
enum_accessor-0.1.0 spec/spec_helper.rb