diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-01-26 10:12:12 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-01-26 10:12:12 +0300 |
commit | db48ee38471b95cca883217f671d271b6119afc8 (patch) | |
tree | 1c436c77688db1cafff72e38b9e81305d556106a /activerecord/test | |
parent | ba5a334acd9bfbbdb454075ff0f335267adb6fd0 (diff) | |
download | rails-db48ee38471b95cca883217f671d271b6119afc8.tar.gz rails-db48ee38471b95cca883217f671d271b6119afc8.tar.bz2 rails-db48ee38471b95cca883217f671d271b6119afc8.zip |
call to_s on value passed to table_name=
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 0ea1b824e1..59d786622e 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1446,6 +1446,11 @@ class BasicsTest < ActiveRecord::TestCase end end + def test_set_table_name_symbol_converted_to_string + Joke.table_name = :cold_jokes + assert_equal 'cold_jokes', Joke.table_name + end + def test_quoted_table_name_after_set_table_name klass = Class.new(ActiveRecord::Base) |