Guest User

Untitled

a guest
Jan 24th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. describe "#GET /3.x/auth/:to/callback" do
  2. it "creates a callback-request" do
  3. any_instance_of(API::Authentication::Service::CallbackRequest) do |callback|
  4. # Smell a refactor? I do.
  5. mock(callback).code=('foo')
  6. mock(callback).state=('bar')
  7. mock(callback).error_description=('')
  8. mock(callback).to=('facebook')
  9. end
  10.  
  11. get "/3.0/auth/facebook/callback", { :code => 'foo', :state => 'bar', :error_description => '', :to => 'facebook'}
  12. end
  13.  
  14. # ...
  15. end
Add Comment
Please, Sign In to add comment