Sha256: 03d2a3a35daaa08f86c24bf1d8564f09e1a6c07c205a8ad26453704f2f36d5c5
Contents?: true
Size: 567 Bytes
Versions: 5
Compression:
Stored size: 567 Bytes
Contents
require "heimdallr" require "active_record" require "sqlite3" require "logger" require "uri" ROOT = File.join(File.dirname(__FILE__), '..') ActiveRecord::Base.logger = Logger.new('tmp/debug.log') ActiveRecord::Base.configurations = YAML::load(IO.read('tmp/database.yml')) ActiveRecord::Base.establish_connection('test') ActiveRecord::Base.connection.create_table(:users) do |t| t.boolean :admin end ActiveRecord::Base.connection.create_table(:articles) do |t| t.belongs_to :owner t.text :content t.integer :secrecy_level t.timestamps end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
heimdallr-1.0.4 | spec/spec_helper.rb |
heimdallr-1.0.3 | spec/spec_helper.rb |
heimdallr-1.0.2 | spec/spec_helper.rb |
heimdallr-1.0.1 | spec/spec_helper.rb |
heimdallr-1.0.0 | spec/spec_helper.rb |