diff options
author | Jon Leighton <j@jonathanleighton.com> | 2013-01-25 09:52:53 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2013-01-25 09:52:53 +0000 |
commit | 48d05bdd97e067b534b158bdf56256b45bf59e48 (patch) | |
tree | 82a2704950ca6fd19e8fd2822ebd22e02d41f7fb /activerecord/test/cases | |
parent | 0757b3388ffe4f44b60de950d40e18ef05055931 (diff) | |
download | rails-48d05bdd97e067b534b158bdf56256b45bf59e48.tar.gz rails-48d05bdd97e067b534b158bdf56256b45bf59e48.tar.bz2 rails-48d05bdd97e067b534b158bdf56256b45bf59e48.zip |
Remove obsolete test file
https://github.com/rails/rails/commit/4beb4dececcf10c642c74fbcb8548c833e921a86#commitcomment-2482869
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/associations/habtm_join_table_test.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/activerecord/test/cases/associations/habtm_join_table_test.rb b/activerecord/test/cases/associations/habtm_join_table_test.rb deleted file mode 100644 index 44aaa65416..0000000000 --- a/activerecord/test/cases/associations/habtm_join_table_test.rb +++ /dev/null @@ -1,35 +0,0 @@ -require 'cases/helper' - -class MyReader < ActiveRecord::Base - has_and_belongs_to_many :my_books -end - -class MyBook < ActiveRecord::Base - has_and_belongs_to_many :my_readers -end - -class HabtmJoinTableTest < ActiveRecord::TestCase - def test_habtm_join_table - ActiveRecord::Base.connection.create_table :my_books, :force => true do |t| - t.string :name - end - assert ActiveRecord::Base.connection.table_exists?(:my_books) - - ActiveRecord::Base.connection.create_table :my_readers, :force => true do |t| - t.string :name - end - assert ActiveRecord::Base.connection.table_exists?(:my_readers) - - ActiveRecord::Base.connection.create_table :my_books_my_readers, :force => true do |t| - t.integer :my_book_id - t.integer :my_reader_id - end - assert ActiveRecord::Base.connection.table_exists?(:my_books_my_readers) - end - - def teardown - ActiveRecord::Base.connection.drop_table :my_books - ActiveRecord::Base.connection.drop_table :my_readers - ActiveRecord::Base.connection.drop_table :my_books_my_readers - end -end |