Skip to content
This repository
Browse code

Removed duplicated tests [#3026 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
commit 810b59a2a9da3e85bc85d2617ae781c1b3645af4 1 parent ce2422c
Arthur Zapparoli authored August 09, 2009 lifo committed August 10, 2009
18  activerecord/test/cases/associations/belongs_to_associations_test.rb
@@ -249,24 +249,6 @@ def test_belongs_to_counter_after_update_attributes
249 249
     assert_equal 1, Topic.find(topic.id)[:replies_count]
250 250
   end
251 251
 
252  
-  def test_belongs_to_counter_after_save
253  
-    topic = Topic.create("title" => "monday night")
254  
-    topic.replies.create("title" => "re: monday night", "content" => "football")
255  
-    assert_equal 1, Topic.find(topic.id).send(:read_attribute, "replies_count")
256  
-
257  
-    topic.save
258  
-    assert_equal 1, Topic.find(topic.id).send(:read_attribute, "replies_count")
259  
-  end
260  
-
261  
-  def test_belongs_to_counter_after_update_attributes
262  
-    topic = Topic.create("title" => "37s")
263  
-    topic.replies.create("title" => "re: 37s", "content" => "rails")
264  
-    assert_equal 1, Topic.find(topic.id).send(:read_attribute, "replies_count")
265  
-
266  
-    topic.update_attributes("title" => "37signals")
267  
-    assert_equal 1, Topic.find(topic.id).send(:read_attribute, "replies_count")
268  
-  end
269  
-
270 252
   def test_assignment_before_child_saved
271 253
     final_cut = Client.new("name" => "Final Cut")
272 254
     firm = Firm.find(1)

0 notes on commit 810b59a

Please sign in to comment.
Something went wrong with that request. Please try again.