Skip to content

Instantly share code, notes, and snippets.

View akinsgre's full-sized avatar

Greg Akins akinsgre

View GitHub Profile
def authenticate_with_open_id(identifier = nil, options = {}, &block) #:doc:
raise "Test"
OpenID::Util.logger.info "Authenticating with open id" + identifier
identifier ||= open_id_identifier
if request.env[Rack::OpenID::RESPONSE]
complete_open_id_authentication(&block)
else
begin_open_id_authentication(identifier, options, &block)
end
class CommentsController < ApplicationController
include UrlHelper
OPEN_ID_ERRORS = {
:missing => "Sorry, the OpenID server couldn't be found",
:canceled => "OpenID verification was canceled",
:failed => "Sorry, the OpenID verification failed" }
before_filter :find_post, :except => [:new]
def index
if (NON_NEGATIVE.containsInteger(startRecord)
&& NON_NEGATIVE.containsInteger(endRecord)
&& olbRequest.isDirtyFlag())
{
String orderBy = olbRequest.getOrderBy();
if (NON_NEGATIVE.containsInteger(categoryId)
&& customerId != null)
{
results = getAcctHistoryByCategory(tpc, startDate, endDate, orderBy, startRecord, endRecord, categoryId, customerId, aid);
it "should return Saved when passed params" do
post :update, :content => {"content", "Seniors"}
response.should contain("Saved")
end