deep_cloneable 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/test/test_helper.rb DELETED
@@ -1,35 +0,0 @@
1
- require 'rubygems'
2
- require 'yaml'
3
- require 'sqlite3'
4
-
5
- gem 'minitest'
6
- require 'minitest/autorun'
7
-
8
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
9
- $LOAD_PATH.unshift(File.dirname(__FILE__))
10
-
11
- require 'active_record'
12
-
13
- I18n.enforce_available_locales = true
14
-
15
- def load_schema
16
- config = YAML.load(IO.read(File.dirname(__FILE__) + '/database.yml'))
17
-
18
- ActiveRecord::Base.logger = if defined?(ActiveSupport::BufferedLogger)
19
- ActiveSupport::BufferedLogger.new(File.dirname(__FILE__) + '/debug.log')
20
- else
21
- ActiveSupport::Logger.new(File.dirname(__FILE__) + '/debug.log')
22
- end
23
-
24
- db_adapter = ENV['DB']
25
- db_adapter ||= 'sqlite3'
26
-
27
- raise 'No DB Adapter selected. Pass the DB= option to pick one, or install Sqlite or Sqlite3.' if db_adapter.nil?
28
-
29
- ActiveRecord::Base.establish_connection(config[db_adapter])
30
- load(File.dirname(__FILE__) + '/schema.rb')
31
- end
32
-
33
- load_schema
34
- require File.dirname(__FILE__) + '/../init.rb'
35
- require 'models'