aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration
diff options
context:
space:
mode:
authorCody Cutrer <cody@instructure.com>2014-11-10 12:06:58 -0700
committerCody Cutrer <cody@instructure.com>2014-11-10 14:56:21 -0700
commit76e7305ea16b41a3674f4213ab7faa8c65196d75 (patch)
tree69c3812f542a2a8d4a21fd6da7dbf6b2b3977394 /activerecord/test/cases/migration
parent82e20030d4dc022c3a25ecc82315bda553a8659d (diff)
downloadrails-76e7305ea16b41a3674f4213ab7faa8c65196d75.tar.gz
rails-76e7305ea16b41a3674f4213ab7faa8c65196d75.tar.bz2
rails-76e7305ea16b41a3674f4213ab7faa8c65196d75.zip
add a Table#name accessor like TableDefinition#name
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r--activerecord/test/cases/migration/change_table_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration/change_table_test.rb b/activerecord/test/cases/migration/change_table_test.rb
index 777a48ad14..6613783fba 100644
--- a/activerecord/test/cases/migration/change_table_test.rb
+++ b/activerecord/test/cases/migration/change_table_test.rb
@@ -213,6 +213,12 @@ module ActiveRecord
t.rename :bar, :baz
end
end
+
+ def test_table_name_set
+ with_change_table do |t|
+ assert_equal :delete_me, t.name
+ end
+ end
end
end
end