Sha256: 889d4ab28dabd5634f77c91dd36f2f31f6aeb35e85435861c6a6733153088ae7
Contents?: true
Size: 763 Bytes
Versions: 5
Compression:
Stored size: 763 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' require 'active_record' require 'symbolize/active_record' ActiveRecord::Base.send :include, Symbolize::ActiveRecord # this is normally done by the railtie ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") #'postgresql', :database => 'symbolize_test', :username => 'postgres') if ActiveRecord::VERSION::STRING >= "3.1" ActiveRecord::Migrator.migrate("spec/db") else require "db/001_create_testing_structure" CreateTestingStructure.migrate(:up) end puts "Running AR #{ActiveRecord::VERSION::STRING}" # Spec::Runner.configure do |config| # end RSpec.configure do |config| config.after(:each) do [User, Permission].each { |klass| klass.delete_all } end end
Version data entries
5 entries across 5 versions & 1 rubygems