diff options
| author | hukl <contact@smyck.org> | 2009-10-06 20:54:47 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-06 20:54:47 +0200 |
| commit | 2c59d78cde32cfd6f6fcda1f9aa78f94b38e5930 (patch) | |
| tree | 23935202a8c45ae1997739d4173a3d9559e080e5 /vendor/plugins/globalize2/test/test_helper.rb | |
| parent | cd6ebe068cf42badc07ea0d803476ef4b1be3177 (diff) | |
updated globalize2
Diffstat (limited to 'vendor/plugins/globalize2/test/test_helper.rb')
| -rw-r--r-- | vendor/plugins/globalize2/test/test_helper.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/vendor/plugins/globalize2/test/test_helper.rb b/vendor/plugins/globalize2/test/test_helper.rb index 956b352f..3a1c8c46 100644 --- a/vendor/plugins/globalize2/test/test_helper.rb +++ b/vendor/plugins/globalize2/test/test_helper.rb | |||
| @@ -11,7 +11,7 @@ class ActiveSupport::TestCase | |||
| 11 | ::ActiveRecord::Migration.verbose = false # Quiet down the migration engine | 11 | ::ActiveRecord::Migration.verbose = false # Quiet down the migration engine |
| 12 | ::ActiveRecord::Base.establish_connection({ | 12 | ::ActiveRecord::Base.establish_connection({ |
| 13 | :adapter => 'sqlite3', | 13 | :adapter => 'sqlite3', |
| 14 | :dbfile => ':memory:' | 14 | :database => ':memory:' |
| 15 | }) | 15 | }) |
| 16 | ::ActiveRecord::Base.silence do | 16 | ::ActiveRecord::Base.silence do |
| 17 | load schema_path | 17 | load schema_path |
| @@ -23,4 +23,14 @@ class ActiveSupport::TestCase | |||
| 23 | arr.member? item | 23 | arr.member? item |
| 24 | end | 24 | end |
| 25 | end | 25 | end |
| 26 | end | ||
| 27 | |||
| 28 | module ActiveRecord | ||
| 29 | module ConnectionAdapters | ||
| 30 | class AbstractAdapter | ||
| 31 | def index_exists?(table_name, column_name) | ||
| 32 | indexes(table_name).any? { |index| index.name == index_name(table_name, column_name) } | ||
| 33 | end | ||
| 34 | end | ||
| 35 | end | ||
| 26 | end \ No newline at end of file | 36 | end \ No newline at end of file |
