diff options
author | Marcel Molina <marcel@vernix.org> | 2006-04-27 22:39:45 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-04-27 22:39:45 +0000 |
commit | b2c0ddf033fbf143539ad8a7630747a0e866e4fc (patch) | |
tree | 2aae48e00aa7d4951e711ebb667d8f37e0c8a6d0 /activerecord/test/finder_test.rb | |
parent | dd5397a57c39da78f22e0fec517ff6e5ede7628a (diff) | |
download | rails-b2c0ddf033fbf143539ad8a7630747a0e866e4fc.tar.gz rails-b2c0ddf033fbf143539ad8a7630747a0e866e4fc.tar.bz2 rails-b2c0ddf033fbf143539ad8a7630747a0e866e4fc.zip |
Add support for FrontBase (http://www.frontbase.com/) with a new adapter thanks to the hard work of one Mike Laster. Closes #4093. [mlaster@metavillage.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4291 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/finder_test.rb')
-rw-r--r-- | activerecord/test/finder_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/finder_test.rb b/activerecord/test/finder_test.rb index 98537ecad7..f23e383115 100644 --- a/activerecord/test/finder_test.rb +++ b/activerecord/test/finder_test.rb @@ -13,6 +13,12 @@ class FinderTest < Test::Unit::TestCase assert_equal(topics(:first).title, Topic.find(1).title) end + # find should handle strings that come from URLs + # (example: Category.find(params[:id])) + def test_find_with_string + assert_equal(Topic.find(1).title,Topic.find("1").title) + end + def test_exists assert (Topic.exists?(1)) assert !(Topic.exists?(45)) |