test/functional/server_controller_test.rb
def fake_checkid_request(account)
    login_as(account)
    id_url = identifier(accounts(account))
    openid_params = checkid_request_params.merge('openid.identity' => id_url, 'openid.claimed_id' => id_url)
    @checkid_request = OpenIdRequest.create(:parameters => openid_params)
    @request.session[:request_token] = @checkid_request.token
  end
# Takes the name of an account fixture for which to fake the request
Takes the name of an account fixture for which to fake the request
Takes the name of an account fixture for which to fake the request
def fake_checkid_request(account)
    login_as(account)
    id_url = identifier(accounts(account))
    openid_params = checkid_request_params.merge('openid.identity' => id_url, 'openid.claimed_id' => id_url)
    @checkid_request = OpenIdRequest.create(:parameters => openid_params)
    @request.session[:request_token] = @checkid_request.token
  end
def fake_checkid_request ( account ) login_as ( account ) id_url = identifier ( accounts ( account ) ) openid_params = checkid_request_params . merge ( 'openid.identity' => id_url , 'openid.claimed_id' => id_url ) @checkid_request = OpenIdRequest . create ( :parameters => openid_params ) @request . session [ :request_token ] = @checkid_request . token end
Takes the name of an account fixture for which to fake the request
Takes the name of an account fixture for which to fake the request
account