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