Sha256: 27bf52ebad2dcbde9d10bb733a4409e4d4950a04fc02fa9096fb3315a6a2e6f2
Contents?: true
Size: 618 Bytes
Versions: 7
Compression:
Stored size: 618 Bytes
Contents
require 'rubygems' gem 'rspec', '~> 1.1' gem 'sqlite3-ruby' require 'ruby-debug' require 'spec' require File.join(File.dirname(__FILE__), '..', 'lib', 'record_filter') module TestModel mattr_reader :extended_models @@extended_models = [] attr_accessor :last_find def scoped(params = {}) @last_find = params end def self.extended(base) @@extended_models << base end end Dir.glob(File.join(File.dirname(__FILE__), 'models', '*.rb')).each { |file| require file } ActiveRecord::Base.establish_connection( :adapter => 'sqlite3', :database => File.join(File.dirname(__FILE__), 'test.db') )
Version data entries
7 entries across 7 versions & 2 rubygems