Sha256: cf77a61a136d6ef1211b3bfbca0c959cf52dddbc1c1ef49ff70a34909c6e7366
Contents?: true
Size: 820 Bytes
Versions: 4
Compression:
Stored size: 820 Bytes
Contents
require 'spec_helper' describe Devise::Oauth2::RefreshToken do it { Devise::Oauth2::RefreshToken.table_name.should == 'oauth2_refresh_tokens' } describe 'basic refresh token instance' do with :client with :user subject do Devise::Oauth2::RefreshToken.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_many :access_tokens } 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