Topic: need help with this functional testing

Hi all, I am pretty new to rails testing. I need help regarding the following.
my create method accepts a set of parameters, redirects to index if it creates a user otherwise renders a partial
Here is my controller code

def create
      @user =[:user]){|user|
      # generate a random password
      user.password = User.generate_random_password
      # the user is activated only after visiting the site through activation link.
      user.activated = false
      # the user status is active by default
      user.status = user.class::ACTIVE
      user.created_at = user.updated_at =
    # save the user record to db, assign role & related permissions
    if @user.save_user(params[:role], params[:permissions])
      # send an activation email to user
      redirect_to :action => "index"
      render :action => :new

here is my testing code
def test_create
     post :create,{'customer_id'=>"3"},{'login'=>""},{'role'=>"3"}
     assert_response :redirect
     assert_redirected_to :action=>'index'     

Test::Unit::AssertionFailedError: response is not a redirection to all of the options supplied (redirection is <{"action"=>"login", "controller"=>"account"}>), difference: <{"action"=>"index", "controller"=>"account"}>
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/assertions/response_assertions.rb:86:in `assert_redirected_to'C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/assertions/response_assertions.rb:35:in `assert_redirected_to'D:\workspaceproject\Life2Go/test/functional/users_controller_test.rb:31:in `test_create'

am getting this error.. can any there analyze this error and suggest me some solutioin for this? am I going wrong any where? Am I missing anything?

thanks in adavnce..