Sha256: 808e52d6e9a7a691dc766348dca2f8e102e6d93e3a387475356f7abdb63d2d34

Contents?: true

Size: 899 Bytes

Versions: 19

Compression:

Stored size: 899 Bytes

Contents

require 'spec_helper_integration'

module Doorkeeper::OAuth
  describe BaseResponse do
    subject do
      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
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
doorkeeper-mongodb-4.2.0 spec/lib/oauth/base_response_spec.rb
doorkeeper-sequel-1.5.0 spec/lib/oauth/base_response_spec.rb
doorkeeper-4.4.3 spec/lib/oauth/base_response_spec.rb
doorkeeper-4.4.2 spec/lib/oauth/base_response_spec.rb
doorkeeper-4.4.1 spec/lib/oauth/base_response_spec.rb
doorkeeper-4.4.0 spec/lib/oauth/base_response_spec.rb
doorkeeper-mongodb-4.1.0 spec/lib/oauth/base_response_spec.rb
doorkeeper-4.3.2 spec/lib/oauth/base_response_spec.rb
doorkeeper-4.3.1 spec/lib/oauth/base_response_spec.rb
doorkeeper-4.3.0 spec/lib/oauth/base_response_spec.rb
doorkeeper-sequel-1.4.0 spec/lib/oauth/base_response_spec.rb
doorkeeper-mongodb-4.0.1 spec/lib/oauth/base_response_spec.rb
doorkeeper-mongodb-4.0.0 spec/lib/oauth/base_response_spec.rb
doorkeeper-sequel-1.3.1 spec/lib/oauth/base_response_spec.rb
doorkeeper-sequel-1.3.0 spec/lib/oauth/base_response_spec.rb
doorkeeper-sequel-1.2.3 spec/lib/oauth/base_response_spec.rb
doorkeeper-sequel-1.2.2 spec/lib/oauth/base_response_spec.rb
doorkeeper-4.2.6 spec/lib/oauth/base_response_spec.rb
doorkeeper-4.2.5 spec/lib/oauth/base_response_spec.rb