From 0c2e69b07428657debe80e38c9ff745f1d9c1ecd Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 20 Jul 2011 17:30:13 -0400 Subject: [PATCH] fixed tag impl con test --- .../tag_implications_controller_test.rb | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/test/functional/tag_implications_controller_test.rb b/test/functional/tag_implications_controller_test.rb index 65a5fc500..6fb742839 100644 --- a/test/functional/tag_implications_controller_test.rb +++ b/test/functional/tag_implications_controller_test.rb @@ -29,18 +29,7 @@ class TagImplicationsControllerTest < ActionController::TestCase assert_response :success end end - - context "edit action" do - setup do - @tag_implication = Factory.create(:tag_implication, :creator => @user) - end - - should "render" do - get :edit, {:id => @tag_implication.id}, {:user_id => @user.id} - assert_response :success - end - end - + context "create action" do should "create a tag implication" do assert_difference("TagImplication.count", 1) do @@ -49,18 +38,6 @@ class TagImplicationsControllerTest < ActionController::TestCase end end - context "update action" do - setup do - @tag_implication = Factory.create(:tag_implication, :creator => @user) - end - - should "update a tag_implication" do - post :update, {:id => @tag_implication.id, :tag_implication => {:antecedent_name => "zzz"}}, {:user_id => @user.id} - @tag_implication.reload - assert_equal("zzz", @tag_implication.antecedent_name) - end - end - context "destroy action" do setup do @tag_implication = Factory.create(:tag_implication, :creator => @user)