Sha256: 043c3f137996d181f52d26fd06a0cc1832713ed85b86ce0127eea7719c8ab92b

Contents?: true

Size: 948 Bytes

Versions: 13

Compression:

Stored size: 948 Bytes

Contents

require 'logger'
require 'rspec'
require 'factory_girl'

require 'active_record_survey'

# Trigger AR to initialize
ActiveRecord::Base

module Rails
  def self.root
    '.'
  end
end

# Add this directory so the ActiveSupport autoloading works
ActiveSupport::Dependencies.autoload_paths << File.dirname(__FILE__)

if RUBY_PLATFORM == 'java'
	ActiveRecord::Base.establish_connection :adapter => 'jdbcsqlite3', :database => ':memory:'
else
	ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => ':memory:'
end

#ActiveRecord::Base.logger = Logger.new(STDOUT) if defined?(ActiveRecord::Base)
ActiveRecord::Migration.verbose = false

require "generators/active_record_survey/templates/migration_0.1.0"

ActiveRecord::Schema.define do
	AddActiveRecordSurvey.up
end

RSpec.configure do |config|
	config.include FactoryGirl::Syntax::Methods
	config.after(:each) do
	end
	config.expect_with :rspec do |c|
		c.syntax = :expect
	end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
active_record_survey-0.1.12 spec/spec_helper.rb
active_record_survey-0.1.11 spec/spec_helper.rb
active_record_survey-0.1.10 spec/spec_helper.rb
active_record_survey-0.1.9 spec/spec_helper.rb
active_record_survey-0.1.8 spec/spec_helper.rb
active_record_survey-0.1.7 spec/spec_helper.rb
active_record_survey-0.1.6 spec/spec_helper.rb
active_record_survey-0.1.5 spec/spec_helper.rb
active_record_survey-0.1.4 spec/spec_helper.rb
active_record_survey-0.1.3 spec/spec_helper.rb
active_record_survey-0.1.2 spec/spec_helper.rb
active_record_survey-0.1.1 spec/spec_helper.rb
active_record_survey-0.1.0 spec/spec_helper.rb