Sha256: 8ee89ade954b89b216d6f87faf6fd8704e7b3066a7eb1657e96c123f387c6c43

Contents?: true

Size: 560 Bytes

Versions: 13

Compression:

Stored size: 560 Bytes

Contents

require 'spec_helper'

module OpenStax
  module Api
    describe DoorkeeperApplicationIncludes do
      it 'must add methods to Doorkeeper::Application' do
        application = Doorkeeper::Application.new
        expect(application).to respond_to(:is_human?)
        expect(application.is_human?).to eq(false)
        expect(application).to respond_to(:is_application?)
        expect(application.is_application?).to eq(true)
        expect(application).to respond_to(:is_admin?)
        expect(application.is_admin?).to eq(false)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
openstax_api-2.5.1 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.5.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.4.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.3.1 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.3.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.2.4 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.2.3 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.2.2 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.2.1 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.2.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.1.1 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.1.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-2.0.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb