Sha256: 9632acc2af61259ef3df18674e185335c77e0a23feea7548737f15fcf2c5be07
Contents?: true
Size: 730 Bytes
Versions: 10
Compression:
Stored size: 730 Bytes
Contents
require 'spec_helper' describe Devise::Oauth2Providable::AuthorizationCode do describe 'basic authorization code instance' do let(:client) { FactoryGirl.create :client } subject do Devise::Oauth2Providable::AuthorizationCode.create! :client => client end it { should validate_presence_of :token } it { should validate_uniqueness_of :token } it { should belong_to :user } 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 :user_id } it { should have_db_index(:token).unique(true) } it { should have_db_index :expires_at } end end
Version data entries
10 entries across 10 versions & 1 rubygems