Sha256: c8adaa86b134c0cced7ad0c5187bd5e52eda55e835687ac8dc66150310cc12ba

Contents?: true

Size: 561 Bytes

Versions: 47

Compression:

Stored size: 561 Bytes

Contents

require 'rails_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

47 entries across 47 versions & 1 rubygems

Version Path
openstax_api-8.3.1 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-8.3.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-8.2.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-8.1.1 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-8.1.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-8.0.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-7.1.1 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-7.1.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-7.0.1 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-6.1.5 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-6.1.4 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-6.1.3 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-6.1.2 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-6.1.1 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-6.1.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-6.0.2 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-6.0.1 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-6.0.0 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-5.5.5 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb
openstax_api-5.5.4 spec/lib/openstax/api/doorkeeper_application_includes_spec.rb