aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-02-19 04:06:37 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-02-19 04:06:37 +0000
commit8fb9d7cb4a2ae2bab862aa3e05753ddbdee37632 (patch)
treefb884e657325a6c6ac39c61f5ac6f211f71de968
parent63a95167e886da68f87d3917619e8f618fa4153a (diff)
downloadrails-8fb9d7cb4a2ae2bab862aa3e05753ddbdee37632.tar.gz
rails-8fb9d7cb4a2ae2bab862aa3e05753ddbdee37632.tar.bz2
rails-8fb9d7cb4a2ae2bab862aa3e05753ddbdee37632.zip
test_find_or_create_from_two_attributes is a duplicate of test_find_or_create_from_one_attribute (closes #3863) [jp.bougie@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/test/finder_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/finder_test.rb b/activerecord/test/finder_test.rb
index c197663439..26a4688108 100644
--- a/activerecord/test/finder_test.rb
+++ b/activerecord/test/finder_test.rb
@@ -283,10 +283,10 @@ class FinderTest < Test::Unit::TestCase
end
def test_find_or_create_from_two_attributes
- number_of_companies = Company.count
- sig38 = Company.find_or_create_by_name("38signals")
- assert_equal number_of_companies + 1, Company.count
- assert_equal sig38, Company.find_or_create_by_name("38signals")
+ number_of_topics = Topic.count
+ another = Topic.find_or_create_by_title_and_author_name("Another topic","John")
+ assert_equal number_of_topics + 1, Topic.count
+ assert_equal another, Topic.find_or_create_by_title_and_author_name("Another topic", "John")
end
def test_find_with_bad_sql