Sha256: e861056171fd27b3733567ab87d838fe4a86f3f358dd616978bf49375f160f9a
Contents?: true
Size: 928 Bytes
Versions: 2
Compression:
Stored size: 928 Bytes
Contents
# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper.rb"` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration require 'rubygems' require 'bundler/setup' require 'support/coverage_loader' require 'action_controller' require 'active_record' require 'rails_core_extensions' RSpec.configure do |config| config.raise_errors_for_deprecations! config.run_all_when_everything_filtered = true config.filter_run :focus config.order = :random end DB_FILE = 'tmp/test_db' def connect_to_sqlite return if ActiveRecord::Base.connected? FileUtils.mkdir_p File.dirname(DB_FILE) FileUtils.rm_f DB_FILE ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => DB_FILE load('spec/schema.rb') end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_core_extensions-0.1.1 | spec/spec_helper.rb |
rails_core_extensions-0.1.0 | spec/spec_helper.rb |