Sha256: 2984b99da51b52bee12541b78f87f54c21cc18a3c9c9b2ce28b475fdd3f9d4dd

Contents?: true

Size: 485 Bytes

Versions: 5

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

RSpec.describe Doorkeeper::OAuth::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 "have a list of acceptable scopes" do
      response = described_class.from_scopes(["public"])
      expect(response.description).to include("public")
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
doorkeeper-mongodb-5.3.0 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-mongodb-5.2.3 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-sequel-2.4.0 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-mongodb-5.2.2 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-sequel-2.3.0 spec/lib/oauth/forbidden_token_response_spec.rb