Sha256: dc619240ce79cb5061a092ab68cd50a82f52e5cde367fab3d6391145d652c86c

Contents?: true

Size: 857 Bytes

Versions: 7

Compression:

Stored size: 857 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe Doorkeeper::OAuth::BaseResponse do
  subject do
    Doorkeeper::OAuth::BaseResponse.new
  end

  describe "#body" do
    it "returns an empty Hash" do
      expect(subject.body).to eq({})
    end
  end

  describe "#description" do
    it "returns an empty String" do
      expect(subject.description).to eq("")
    end
  end

  describe "#headers" do
    it "returns an empty Hash" do
      expect(subject.headers).to eq({})
    end
  end

  describe "#redirectable?" do
    it "returns false" do
      expect(subject.redirectable?).to eq(false)
    end
  end

  describe "#redirect_uri" do
    it "returns an empty String" do
      expect(subject.redirect_uri).to eq("")
    end
  end

  describe "#status" do
    it "returns :ok" do
      expect(subject.status).to eq(:ok)
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

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