fix functional tests

This commit is contained in:
albert
2012-01-15 17:04:22 -05:00
parent 0887c35922
commit 4283bce8b9
6 changed files with 15 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ module Moderator
end
should "render the new page" do
get :new, {}, {:user_id => @mod.id}
get :new, {:invitation => {:name => @user_1.name}}, {:user_id => @mod.id}
assert_response :success
end

View File

@@ -12,17 +12,17 @@ module Moderator
end
should "find by ip addr" do
get :index, {:search => {:ip_addr => "127.0.0.1"}}, {:user_id => @user.id}
get :index, {:search => {:ip_addr_eq => "127.0.0.1"}}, {:user_id => @user.id}
assert_response :success
end
should "find by user id" do
get :index, {:search => {:user_id => @user.id.to_s}}, {:user_id => @user.id}
get :index, {:search => {:user_id_eq => @user.id.to_s}}, {:user_id => @user.id}
assert_response :success
end
should "find by user name" do
get :index, {:search => {:user_name => @user.name}}, {:user_id => @user.id}
get :index, {:search => {:user_name_eq => @user.name}}, {:user_id => @user.id}
assert_response :success
end