Sha256: 878117ad67d05c4836d2ea0dba54c4dd51b091b5fccb2f135dca7c047ea37974

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$:.unshift(File.join(File.dirname(__FILE__), '..', 'spec'))

require 'rubygems'
require 'spec/autorun'

require 'active_record'
require 'active_support'
require 'not_only_but_also'

RAILS_ROOT = File.join(File.dirname(__FILE__), 'rails_root')

ActiveRecord::Migration.verbose = false
ActiveRecord::Base.establish_connection({:adapter => 'sqlite3', :database => ':memory:'})

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

ActiveSupport::Dependencies.load_paths = %W( #{RAILS_ROOT}/app #{RAILS_ROOT}/app/models )

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
not_only_but_also-0.2.0 spec/spec_helper.rb
not_only_but_also-0.1.0 spec/spec_helper.rb