Sha256: 43c730e70dc8a7608816a0a25b243a806e94a37df916fc6fbdcd414fcbaeb86a
Contents?: true
Size: 709 Bytes
Versions: 4
Compression:
Stored size: 709 Bytes
Contents
require 'spec_helper' describe Devise::Oauth2::AuthorizationCode do describe 'basic authorization code instance' do with :client with :user subject do Devise::Oauth2::AuthorizationCode.create! :client => client, owner: user end it { should validate_presence_of :token } it { should validate_uniqueness_of :token } it { should belong_to :owner } it { should belong_to :client } it { should validate_presence_of :client } it { should validate_presence_of :expires_at } it { should have_db_index :client_id } it { should have_db_index :owner_id } it { should have_db_index(:token).unique(true) } it { should have_db_index :expires_at } end end
Version data entries
4 entries across 4 versions & 1 rubygems