Skip to content
Snippets Groups Projects
Commit 453d386c authored by Giovanne Marcelo's avatar Giovanne Marcelo
Browse files

Add authentication shared context

parent 8eb82000
No related branches found
No related tags found
No related merge requests found
require 'rails_helper'
require 'rspec_api_documentation'
require 'rspec_api_documentation/dsl'
require 'spec_helper'
RSpec.shared_context "authentication", shared_context: :metadata do
let(:auth_client) { @auth_headers['client'] }
let(:uid) { @auth_headers['uid'] }
let(:access_token) { @auth_headers['access-token'] }
def authenticate(user)
@auth_headers = user.create_new_auth_token
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment