airborne
airborne copied to clipboard
Posibility to sign requests with oAuth token
Is there airborne'y way so sign requests with oAuth token?
I found only way to do it directly with RestClient before exec proc:
access_token = MyModule.get_oauth[:token]
RestClient.reset_before_execution_procs
RestClient.add_before_execution_proc do |req, params|
access_token.sign! req
end
get "#{MyModule.base_url}/rest/agent/user"
This chunk could be executed across many examples. Any advices how to make it more DRY?