Permalink
Browse files

Remove accidental extra .should

  • Loading branch information...
1 parent 8e33ba1 commit 4f91cb858600abd2f3e32bfefdce5e2021085a7f @arsduo committed Jul 21, 2012
Showing with 5 additions and 4 deletions.
  1. +2 −1 .gitignore
  2. +3 −3 spec/cases/oauth_spec.rb
View
@@ -4,4 +4,5 @@ Gemfile.lock
.rvmrc
*.rbc
*~
-.yardoc/
+.yardoc/
+.DS_Store
View
@@ -117,7 +117,7 @@
end
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." } }'
))
@oauth.get_user_info_from_cookies(@cookie).should be_nil
@@ -292,13 +292,13 @@
it "generates a properly formatted OAuth token URL when provided a code" do
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
it "generates a properly formatted OAuth token URL when provided a callback" do
callback = "foo.com"
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
it "includes any additional options as URL parameters, appropriately escaped" do

0 comments on commit 4f91cb8

Please sign in to comment.