Sha256: 961f96a8c6ad1a56d9dc39ef1db4c1ca0cc2b96b889b3474b13c8613967847fe
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' $LOAD_PATH.unshift File.dirname(__FILE__) $stderr.puts("Running Specs using Ruby v#{RUBY_VERSION}") require 'rspec' require 'logger' require 'zdm' require 'active_record' require 'yaml' require 'erb' # require 'rspec/support' # RSpec::Support.require_rspec_support "object_formatter" # RSpec::Support::ObjectFormatter.default_instance.max_formatted_output_length = nil config = YAML::load(ERB.new(IO.read(File.dirname(__FILE__) + '/database.yml')).result) ActiveRecord::Base.establish_connection(config['test']) ActiveRecord::Schema.define version: 0 do create_table :people, force: true do |t| t.integer :account_id t.string :name, limit: 30 t.string :code t.datetime :created_at end add_index(:people, :name, unique: true, using: :btree) add_index(:people, [:account_id, :code], length: {account_id: nil, code: 191}, using: :btree) add_index(:people, :created_at, using: :btree) create_table :people_teams, id: false, force: true do |t| t.integer :team_id, null: false t.integer :person_id, null: false end end # ActiveRecord::Base.logger = Logger.new($stdout)
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
zdm-1.1.1 | spec/spec_helper.rb |
zdm-1.1.0 | spec/spec_helper.rb |
zdm-1.0.7 | spec/spec_helper.rb |
zdm-1.0.6 | spec/spec_helper.rb |
zdm-1.0.5 | spec/spec_helper.rb |