Sha256: 9e042cb88a2a4e8de8e8bf0430e7c9f3cad4d57a7890a210475b5a97af4fd115

Contents?: true

Size: 774 Bytes

Versions: 2

Compression:

Stored size: 774 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'rails/all'
require 'has_enum'

ActiveRecord::Base.establish_connection(
  :adapter  => 'sqlite3',
  :database => 'spec/rspec.db'
)

ActiveRecord::Schema.define(:version => 20120124121410) do
  create_table "test_models", :force => true do |t|
    t.string "category"
    t.string "color"
    t.string "size"
    t.string "status"
    t.string "state"
    t.string "speed"
  end

  create_table "another_models", :force => true do | t |
    t.string "status"
    t.string "size"
    t.text   "speed"
  end
end

I18n.load_path << 'spec/ru.yml'
I18n.default_locale = :ru

require File.dirname(__FILE__) + "/test_model" unless defined?(Model)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
has_enum-0.10.1 spec/spec_helper.rb
has_enum-0.10.0 spec/spec_helper.rb