Sha256: aef1f8e64b897694d1846594ac2888c525c84c6dfb80736798c7236d740f31f2

Contents?: true

Size: 627 Bytes

Versions: 43

Compression:

Stored size: 627 Bytes

Contents

require 'spec_helper.rb'

describe Rack::OAuth2::Server::Resource do
  subject { Rack::OAuth2::Server::Resource.new(simple_app, 'realm') }
  its(:realm) { should == 'realm' }
end

describe Rack::OAuth2::Server::Resource::Request do
  let(:env) { Rack::MockRequest.env_for('/protected_resource') }
  let(:request) { Rack::OAuth2::Server::Resource::Request.new(env) }

  describe '#setup!' do
    it do
      expect { request.setup! }.should raise_error(RuntimeError, 'Define me!')
    end
  end

  describe '#oauth2?' do
    it do
      expect { request.oauth2? }.should raise_error(RuntimeError, 'Define me!')
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
rack-oauth2-0.14.6 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.14.5 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.14.4 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.14.3 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.14.2 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.14.1 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.14.0 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.13.0 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.12.2 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.12.1 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.12.0 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.11.0 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.10.1 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.10.0 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.10.0.alpha spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.9.5 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.9.4 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.9.3 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.9.2 spec/rack/oauth2/server/resource_spec.rb
rack-oauth2-0.9.1 spec/rack/oauth2/server/resource_spec.rb