Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe "#GET /3.x/auth/:to/callback" do
- it "creates a callback-request" do
- any_instance_of(API::Authentication::Service::CallbackRequest) do |callback|
- # Smell a refactor? I do.
- mock(callback).code=('foo')
- mock(callback).state=('bar')
- mock(callback).error_description=('')
- mock(callback).to=('facebook')
- end
- get "/3.0/auth/facebook/callback", { :code => 'foo', :state => 'bar', :error_description => '', :to => 'facebook'}
- end
- # ...
- end
Add Comment
Please, Sign In to add comment