Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 28 lines (21 sloc) 0.604 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'rubygems'
require 'spec'

require 'active_record'
require 'action_view'
require 'formtastic'
require 'classy_enum'

ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")

ActiveRecord::Schema.define(:version => 1) do
  create_table :dogs, :force => true do |t|
    t.string :breed
  end

  create_table :things, :force => true do |t|
    t.string :dog_breed
  end
end

module Breed
  OPTIONS = [:golden_retriever, :snoop]
  
  include ClassyEnum
end
Something went wrong with that request. Please try again.