Sha256: d7d27f794071605d4aca33de6c89b4fc834776af58c110563749ac959d7dd643

Contents?: true

Size: 649 Bytes

Versions: 6

Compression:

Stored size: 649 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 => 0) do
  create_table "test_models", :force => true do |t|
    t.string "category"
    t.string "color"
    t.string "size"
    t.string "status"
    t.string "foo"
  end

  create_table "schema_info", :id => false, :force => true do |t|
    t.integer "version"
  end
end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
has_enum-0.4.0 spec/spec_helper.rb
has_enum-0.3.4 spec/spec_helper.rb
has_enum-0.3.3 spec/spec_helper.rb
has_enum-0.3.2 spec/spec_helper.rb
has_enum-0.3.1 spec/spec_helper.rb
has_enum-0.3.0 spec/spec_helper.rb