Sha256: bb12b09448d9dd80d498719f0634314ac2043c1a528475e6d580cf64084cf5e1
Contents?: true
Size: 682 Bytes
Versions: 3
Compression:
Stored size: 682 Bytes
Contents
require 'spec_helper' require 'active_support/core_ext/module/delegation' require 'doorkeeper/oauth/scopes' require 'doorkeeper/models/scopes' describe 'Doorkeeper::Models::Scopes' do subject do Class.new(Hash) do include Doorkeeper::Models::Scopes end.new end before do subject[:scopes] = 'public admin' end describe :scopes do it 'is a `Scopes` class' do subject.scopes.should be_a(Doorkeeper::OAuth::Scopes) end it 'includes scopes' do subject.scopes.should include('public') end end describe :scopes_string do it 'is a `Scopes` class' do subject.scopes_string.should == 'public admin' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-1.0.0.rc2 | spec/lib/models/scopes_spec.rb |
doorkeeper-1.0.0.rc1 | spec/lib/models/scopes_spec.rb |
doorkeeper-0.7.4 | spec/lib/models/scopes_spec.rb |