Sha256: 968d011a2d14db5650b5cae3b986300d1d4c12b041b6daa702bd0d25b58be564

Contents?: true

Size: 498 Bytes

Versions: 10

Compression:

Stored size: 498 Bytes

Contents

require 'spec_helper'

module Doorkeeper::OAuth
  describe ForbiddenTokenResponse do
    describe '#name' do
      it { expect(subject.name).to eq(:invalid_scope) }
    end

    describe '#status' do
      it { expect(subject.status).to eq(:forbidden) }
    end

    describe :from_scopes do
      it 'should have a list of acceptable scopes' do
        response = ForbiddenTokenResponse.from_scopes(["public"])
        expect(response.description).to include('public')
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
doorkeeper-5.0.3 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.1.0.rc2 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.1.0.rc1 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.0.2 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-mongodb-5.0.0 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.0.1 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-sequel-2.0.0 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.0.0 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.0.0.rc2 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.0.0.rc1 spec/lib/oauth/forbidden_token_response_spec.rb