Sha256: fb7f4f272a4ce4b5abe7af097f001289b338f4d6996a5e5d0e21f185fe7be26d
Contents?: true
Size: 551 Bytes
Versions: 1
Compression:
Stored size: 551 Bytes
Contents
require 'spec_helper' describe AccessToken do describe 'basic access token instance' do subject do client = Client.create! :name => 'test', :redirect_uri => 'http://localhost:3000', :website => 'http://localhost' AccessToken.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 } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise_oauth2_providable-0.1.6 | spec/rails_app/spec/models/access_token_spec.rb |