Skip to content

Commit

Permalink
Removed duplicated tests [#3026 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
arthurgeek authored and lifo committed Aug 9, 2009
1 parent 18b4ac6 commit 9bcacf4
Showing 1 changed file with 0 additions and 18 deletions.
Expand Up @@ -249,24 +249,6 @@ def test_belongs_to_counter_after_update_attributes
assert_equal 1, Topic.find(topic.id)[:replies_count]
end

def test_belongs_to_counter_after_save
topic = Topic.create("title" => "monday night")
topic.replies.create("title" => "re: monday night", "content" => "football")
assert_equal 1, Topic.find(topic.id).send(:read_attribute, "replies_count")

topic.save
assert_equal 1, Topic.find(topic.id).send(:read_attribute, "replies_count")
end

def test_belongs_to_counter_after_update_attributes
topic = Topic.create("title" => "37s")
topic.replies.create("title" => "re: 37s", "content" => "rails")
assert_equal 1, Topic.find(topic.id).send(:read_attribute, "replies_count")

topic.update_attributes("title" => "37signals")
assert_equal 1, Topic.find(topic.id).send(:read_attribute, "replies_count")
end

def test_assignment_before_child_saved
final_cut = Client.new("name" => "Final Cut")
firm = Firm.find(1)
Expand Down

0 comments on commit 9bcacf4

Please sign in to comment.