Sha256: cf7248f173d0f3814a3df05636d5dc526eb041576fbd63dbd9b3641e2055a45b
Contents?: true
Size: 618 Bytes
Versions: 2
Compression:
Stored size: 618 Bytes
Contents
module AuthenticatedContext extend ActiveSupport::Concern included do before do header["Authorization"] = "Bearer #{access_token.token}" end let(:scopes) do "public meta" end let(:user) do FactoryGirl.create(:user) end let(:resource_owner_id) do user.id end let(:application) do FactoryGirl.create(:application) end let(:application_id) do application.id end let(:access_token) do FactoryGirl.create(:access_token, resource_owner_id: resource_owner_id, scopes: scopes, application: application) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
garage-doorkeeper-2.0.0 | spec/support/authenticated_context.rb |
garage-doorkeeper-1.0.0 | spec/support/authenticated_context.rb |