Permalink
Browse files

delete duplicated tests in AR base_test.rb

These are duplicated with the tests which are in relations_test.rb
  • Loading branch information...
1 parent b04c81d commit 679777849b34811d137f556126537e37a6949bfe @take take committed Feb 19, 2013
Showing with 0 additions and 23 deletions.
  1. +0 −23 activerecord/test/cases/base_test.rb
@@ -327,29 +327,6 @@ def test_create_after_initialize_with_array_param
assert !cbs[1].frickinawesome
end
- def test_first_or_create
- parrot = Bird.first_or_create(:color => 'green', :name => 'parrot')
- assert parrot.persisted?
- the_same_parrot = Bird.first_or_create(:color => 'yellow', :name => 'macaw')
- assert_equal parrot, the_same_parrot
- end
-
- def test_first_or_create_bang
- assert_raises(ActiveRecord::RecordInvalid) { Bird.first_or_create! }
- parrot = Bird.first_or_create!(:color => 'green', :name => 'parrot')
- assert parrot.persisted?
- the_same_parrot = Bird.first_or_create!(:color => 'yellow', :name => 'macaw')
- assert_equal parrot, the_same_parrot
- end
-
- def test_first_or_initialize
- parrot = Bird.first_or_initialize(:color => 'green', :name => 'parrot')
- assert_kind_of Bird, parrot
- assert !parrot.persisted?
- assert parrot.new_record?
- assert parrot.valid?
- end
-
def test_load
topics = Topic.all.merge!(:order => 'id').to_a
assert_equal(4, topics.size)

0 comments on commit 6797778

Please sign in to comment.