Skip to content

Commit

Permalink
Remove accidental extra .should
Browse files Browse the repository at this point in the history
  • Loading branch information
arsduo committed Jul 21, 2012
1 parent 8e33ba1 commit 4f91cb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,5 @@ Gemfile.lock
.rvmrc .rvmrc
*.rbc *.rbc
*~ *~
.yardoc/ .yardoc/
.DS_Store
6 changes: 3 additions & 3 deletions spec/cases/oauth_spec.rb
Expand Up @@ -117,7 +117,7 @@
end end


it "returns nil if the call to FB returns an expired code error" do it "returns nil if the call to FB returns an expired code error" do
@oauth.stub(:get_access_token_info).and_raise(Koala::Facebook::OAuthTokenRequestError.new(400, @oauth.stub(:get_access_token_info).and_raise(Koala::Facebook::OAuthTokenRequestError.new(400,
'{ "error": { "type": "OAuthException", "message": "Code was invalid or expired. Session has expired at unix time 1324044000. The current unix time is 1324300957." } }' '{ "error": { "type": "OAuthException", "message": "Code was invalid or expired. Session has expired at unix time 1324044000. The current unix time is 1324300957." } }'
)) ))
@oauth.get_user_info_from_cookies(@cookie).should be_nil @oauth.get_user_info_from_cookies(@cookie).should be_nil
Expand Down Expand Up @@ -292,13 +292,13 @@


it "generates a properly formatted OAuth token URL when provided a code" do it "generates a properly formatted OAuth token URL when provided a code" do
url = @oauth.url_for_access_token(@code) url = @oauth.url_for_access_token(@code)
url.should match_url("https://#{Koala::Facebook::GRAPH_SERVER}/oauth/access_token?client_id=#{@app_id}&code=#{@code}&client_secret=#{@secret}&redirect_uri=#{CGI.escape @callback_url}").should be_true url.should match_url("https://#{Koala::Facebook::GRAPH_SERVER}/oauth/access_token?client_id=#{@app_id}&code=#{@code}&client_secret=#{@secret}&redirect_uri=#{CGI.escape @callback_url}")
end end


it "generates a properly formatted OAuth token URL when provided a callback" do it "generates a properly formatted OAuth token URL when provided a callback" do
callback = "foo.com" callback = "foo.com"
url = @oauth.url_for_access_token(@code, :callback => callback) url = @oauth.url_for_access_token(@code, :callback => callback)
url.should match_url("https://#{Koala::Facebook::GRAPH_SERVER}/oauth/access_token?client_id=#{@app_id}&code=#{@code}&client_secret=#{@secret}&redirect_uri=#{CGI.escape callback}").should be_true url.should match_url("https://#{Koala::Facebook::GRAPH_SERVER}/oauth/access_token?client_id=#{@app_id}&code=#{@code}&client_secret=#{@secret}&redirect_uri=#{CGI.escape callback}")
end end


it "includes any additional options as URL parameters, appropriately escaped" do it "includes any additional options as URL parameters, appropriately escaped" do
Expand Down

0 comments on commit 4f91cb8

Please sign in to comment.