diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-06-19 16:45:34 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-06-19 16:45:34 +0000 |
commit | e5fc5aaffe0d97b73678d7edfcaca222f01aba69 (patch) | |
tree | 1daa62eaad823b718a2531e8a8b8861b9e2eecc9 /activerecord/test | |
parent | ae0e1a0682c853d0cdc969a82cd23455b4d2ca3e (diff) | |
download | rails-e5fc5aaffe0d97b73678d7edfcaca222f01aba69.tar.gz rails-e5fc5aaffe0d97b73678d7edfcaca222f01aba69.tar.bz2 rails-e5fc5aaffe0d97b73678d7edfcaca222f01aba69.zip |
Change AR::Base#to_param to return a String instead of a Fixnum. Closes #5320.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/base_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index 44b7aea942..2cbc2cfd2b 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -1316,6 +1316,10 @@ class BasicsTest < Test::Unit::TestCase assert_equal 'ActiveRecord::Person', ActiveRecord::Base.send(:type_name_with_module, 'Person') assert_equal '::Person', ActiveRecord::Base.send(:type_name_with_module, '::Person') end + + def test_to_param_should_return_string + assert_kind_of String, Client.find(:first).to_param + end # FIXME: this test ought to run, but it needs to run sandboxed so that it # doesn't b0rk the current test environment by undefing everything. |