aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorTobias Lütke <tobias.luetke@gmail.com>2005-12-24 17:31:26 +0000
committerTobias Lütke <tobias.luetke@gmail.com>2005-12-24 17:31:26 +0000
commitd4e02f755d4de5ddd7eb98afd95391993fbb81d9 (patch)
tree4c8125b9d072defacacf7ecfa91debb5dfd14636 /activerecord/test
parent87535f50e92f7567d817b455e4f7f4a44371710f (diff)
downloadrails-d4e02f755d4de5ddd7eb98afd95391993fbb81d9.tar.gz
rails-d4e02f755d4de5ddd7eb98afd95391993fbb81d9.tar.bz2
rails-d4e02f755d4de5ddd7eb98afd95391993fbb81d9.zip
ActiveRecord::Base.schema_ignore_tables => ActiveRecord::SchemaDumper.ignore_tables
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/schema_dumper_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/schema_dumper_test.rb b/activerecord/test/schema_dumper_test.rb
index cc6a941554..242c5c5aa8 100644
--- a/activerecord/test/schema_dumper_test.rb
+++ b/activerecord/test/schema_dumper_test.rb
@@ -18,7 +18,7 @@ if ActiveRecord::Base.connection.respond_to?(:tables)
def test_schema_dump_with_string_ignored_table
stream = StringIO.new
- ActiveRecord::Base.schema_ignore_tables = ['accounts']
+ ActiveRecord::SchemaDumper.ignore_tables = ['accounts']
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
output = stream.string
assert_no_match %r{create_table "accounts"}, output
@@ -30,7 +30,7 @@ if ActiveRecord::Base.connection.respond_to?(:tables)
def test_schema_dump_with_regexp_ignored_table
stream = StringIO.new
- ActiveRecord::Base.schema_ignore_tables = [/^account/]
+ ActiveRecord::SchemaDumper.ignore_tables = [/^account/]
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
output = stream.string
assert_no_match %r{create_table "accounts"}, output
@@ -41,7 +41,7 @@ if ActiveRecord::Base.connection.respond_to?(:tables)
def test_schema_dump_illegal_ignored_table_value
stream = StringIO.new
- ActiveRecord::Base.schema_ignore_tables = [5]
+ ActiveRecord::SchemaDumper.ignore_tables = [5]
assert_raise(StandardError) do
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
end