Sha256: 637d245a12bbbd62ed29e6768517825ab4f54d104ad5be0a975301cb3037306a
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
require 'codeclimate-test-reporter' CodeClimate::TestReporter.start require 'bundler/setup' Bundler.setup require 'rspec/its' require 'rails' require 'active_record' require 'sojourn' RSpec.configure do |config| config.before(:suite) do ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:' ActiveRecord::Schema.define do self.verbose = false create_table :sojourn_events do |t| t.string :sojourner_uuid, limit: 36, null: false t.string :name t.text :properties t.references :sojourn_request t.references :user t.timestamp :created_at end create_table :sojourn_requests do |t| t.string :host, limit: 2048 t.string :path, limit: 2048 t.string :method t.string :controller t.string :action t.string :ip_address t.text :user_agent t.text :params t.text :referer t.timestamp :created_at end end end config.before do Sojourn::Event.delete_all end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sojourn-0.1.1 | spec/spec_helper.rb |
sojourn-0.1.0 | spec/spec_helper.rb |