Permalink
Browse files

Merge pull request #7458 from frodsan/fix_orddep_basics

fix order dependent test in AR::BasicsTest
  • Loading branch information...
rafaelfranca committed Aug 28, 2012
2 parents 4f093d8 + 2b2fd03 commit 114463305f02cffa914639f66a010267e27ef0b7
Showing with 5 additions and 5 deletions.
  1. +5 −5 activerecord/test/cases/base_test.rb
@@ -466,13 +466,13 @@ def test_table_name_guesses_with_inherited_prefixes_and_suffixes
end
def test_singular_table_name_guesses_for_individual_table
- CreditCard.pluralize_table_names = false
- CreditCard.reset_table_name
- assert_equal "credit_card", CreditCard.table_name
+ Post.pluralize_table_names = false
+ Post.reset_table_name
+ assert_equal "post", Post.table_name
assert_equal "categories", Category.table_name
ensure
- CreditCard.pluralize_table_names = true
- CreditCard.reset_table_name
+ Post.pluralize_table_names = true
+ Post.reset_table_name
end
if current_adapter?(:MysqlAdapter) or current_adapter?(:Mysql2Adapter)

0 comments on commit 1144633

Please sign in to comment.