Skip to content

Instantly share code, notes, and snippets.

@jpemberthy
Created May 20, 2009 00:54
Show Gist options
  • Save jpemberthy/114534 to your computer and use it in GitHub Desktop.
Save jpemberthy/114534 to your computer and use it in GitHub Desktop.
describe "responding to GET link_account with VALID Token" do
before do
authenticate_user
#[email protected] long session token => 'CPnEpdnfEhDDnN3RBg'
@client_calendar_contacts = GData::Client::Base.new
@client_calendar_contacts.authsub_token.stub!(:upgrade).and_return(@auth_handler)
@auth_handler.stub!(:upgrade).and_return('CPnEpdnfEhDDnN3RBg')
get :link_account, :token => '666_666_666'
end
it { response.should redirect_to(:action => 'contact_calendar')}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment