mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user