Sha256: d6a7923e38201baf4f8a9b7a1b2ae9e570fc6211b0a8084abbd946c677da17a5
Contents?: true
Size: 692 Bytes
Versions: 2
Compression:
Stored size: 692 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' require 'active_record' require 'symbolize/active_record' 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 require 'support/ar_models' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
symbolize-4.1.0 | spec/spec_helper_ar.rb |
symbolize-4.0.4 | spec/spec_helper_ar.rb |