Sha256: c045da44a376358eb26d898e61effd205e0faa9d28e781aa8da0a729d3006768

Contents?: true

Size: 828 Bytes

Versions: 4

Compression:

Stored size: 828 Bytes

Contents

__DIR__ = Pathname.new(__FILE__).dirname
$LOAD_PATH.unshift __DIR__
$LOAD_PATH.unshift __DIR__ + '../lib'

#---------------------------------------------------------------------------------------------------
# ActiveRecord

require 'active_record'
driver = ENV["DB"] || 'sqlite3'
#require driver
database_config = YAML::load(File.open(__DIR__ + "support/database.#{driver}.yml"))
ActiveRecord::Base.establish_connection(database_config)

#---------------------------------------------------------------------------------------------------
# RSpec

require 'rspec'

RSpec.configure do |config|
  config.mock_with :rr
end

require 'active_record_ignored_attributes'
require 'active_record_ignored_attributes/matchers'

# Requires supporting ruby files in spec/support/
Dir[__DIR__ + 'support/**/*.rb'].each do |f|
  require f
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_record_ignored_attributes-0.0.4 spec/spec_helper.rb
active_record_ignored_attributes-0.0.3 spec/spec_helper.rb
active_record_ignored_attributes-0.0.2 spec/spec_helper.rb
active_record_ignored_attributes-0.0.1 spec/spec_helper.rb