Sha256: 67a0592df403179c2a72c4f124fff931b88b318fe627d4be231e2c9f1ed8ba91
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'spec' require 'logger' require 'active_record' #ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') ActiveRecord::Base.establish_connection(:adapter => 'mysql', :database => 'rgviz_rails', :username => 'root', :password => 'Manas.03') ActiveRecord::Schema.define do create_table "cities", :force => true do |t| t.string "name" t.datetime "created_at" t.datetime "updated_at" t.integer "country_id" end create_table "countries", :force => true do |t| t.string "name" t.datetime "created_at" t.datetime "updated_at" end create_table "people", :force => true do |t| t.string "name" t.integer "age" t.date "birthday" t.datetime "created_at" t.datetime "updated_at" t.integer "city_id" end end require File.dirname(__FILE__) + '/models/person' require File.dirname(__FILE__) + '/models/city' require File.dirname(__FILE__) + '/models/country' require File.dirname(__FILE__) + '/blueprints' require 'rgviz' require 'rgviz_rails' RAILS_ENV = 'test' # Add this directory so the ActiveSupport autoloading works ActiveSupport::Dependencies.load_paths << File.dirname(__FILE__)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rgviz-rails-0.16 | spec/spec_helper.rb |