ledermann-rails-settings 1.2.1 → 2.0.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,30 +0,0 @@
1
- require 'active_record'
2
- require 'test/unit'
3
-
4
- require "#{File.dirname(__FILE__)}/../init"
5
-
6
- ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
7
- ActiveRecord::Migration.verbose = false
8
-
9
- class User < ActiveRecord::Base
10
- has_settings
11
- end
12
-
13
- def setup_db
14
- ActiveRecord::Schema.define(:version => 1) do
15
- create_table :settings do |t|
16
- t.string :var, :null => false
17
- t.text :value, :null => true
18
- t.integer :target_id, :null => true
19
- t.string :target_type, :limit => 30, :null => true
20
- t.timestamps
21
- end
22
- add_index :settings, [ :target_type, :target_id, :var ], :unique => true
23
-
24
- create_table :users do |t|
25
- t.string :name
26
- end
27
- end
28
- end
29
-
30
- puts "Testing with ActiveRecord #{ActiveRecord::VERSION::STRING}"