Sha256: 2558be1af006ad8797d22f14d646fd8033c1451fba8f851428c725b62797d6df

Contents?: true

Size: 486 Bytes

Versions: 7

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

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 "should 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

7 entries across 7 versions & 2 rubygems

Version Path
doorkeeper-5.3.3 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.3.2 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.4.0.rc1 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-mongodb-5.2.1 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-mongodb-5.2.0 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.3.1 spec/lib/oauth/forbidden_token_response_spec.rb
doorkeeper-5.3.0 spec/lib/oauth/forbidden_token_response_spec.rb