aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2013-01-25 09:52:53 +0000
committerJon Leighton <j@jonathanleighton.com>2013-01-25 09:52:53 +0000
commit48d05bdd97e067b534b158bdf56256b45bf59e48 (patch)
tree82a2704950ca6fd19e8fd2822ebd22e02d41f7fb /activerecord
parent0757b3388ffe4f44b60de950d40e18ef05055931 (diff)
downloadrails-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')
-rw-r--r--activerecord/test/cases/associations/habtm_join_table_test.rb35
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