fixed comment vote functional test

This commit is contained in:
albert
2011-04-01 19:01:17 -04:00
parent e7748e1fc9
commit cbd877d020
43 changed files with 135 additions and 20369 deletions

View File

@@ -35,7 +35,7 @@ class FavoritesControllerTest < ActionController::TestCase
should "create a favorite for the current user" do
assert_difference("Favorite.count(#{@user.id})", 1) do
post :create, {:id => @post.id}, {:user_id => @user.id}
post :create, {:format => "js", :id => @post.id}, {:user_id => @user.id}
end
end
end
@@ -51,7 +51,7 @@ class FavoritesControllerTest < ActionController::TestCase
should "remove the favorite from the current user" do
assert_difference("Favorite.count(#{@user.id})", -1) do
post :destroy, {:id => @post.id}, {:user_id => @user.id}
post :destroy, {:format => "js", :id => @post.id}, {:user_id => @user.id}
end
end
end