Created
May 20, 2009 00:54
-
-
Save jpemberthy/114534 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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