finished dmails and favorites functional tests

This commit is contained in:
albert
2010-12-05 22:27:45 -05:00
parent b18f6340e7
commit 46164eab4f
25 changed files with 226 additions and 48 deletions

View File

@@ -14,22 +14,22 @@ class BansControllerTest < ActionController::TestCase
CurrentUser.ip_addr = nil
end
should "render the new page" do
should "get the new page" do
get :new, {}, {:user_id => @user.id}
assert_response :success
end
should "render the edit page" do
should "get the edit page" do
get :edit, {:id => @ban.id}, {:user_id => @user.id}
assert_response :success
end
should "render the show page" do
should "get the show page" do
get :show, {:id => @ban.id}
assert_response :success
end
should "render the index page" do
should "get the index page" do
get :index
assert_response :success
end