Sha256: c9b9d2a81d890bee854e43c4fcf4f03c06c7347dbdeb06764404297976c8ebd7
Contents?: true
Size: 763 Bytes
Versions: 4
Compression:
Stored size: 763 Bytes
Contents
require 'spec_helper' describe RefreshToken do describe 'basic refresh token instance' do subject do client = Client.create! :name => 'test', :redirect_uri => 'http://localhost:3000', :website => 'http://localhost' RefreshToken.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_many :access_tokens } it { should have_db_index :client_id } it { should have_db_index :user_id } it { should have_db_index :token } it { should have_db_index :expires_at } end end
Version data entries
4 entries across 4 versions & 1 rubygems