Sha256: eecf7f63315650bdb9bcbce0fb430f92f5692fa04d1a30e254c0178ed3d6e8f7

Contents?: true

Size: 421 Bytes

Versions: 4

Compression:

Stored size: 421 Bytes

Contents

require 'spec_helper'

describe Devise::Oauth2::Client do
  it { Devise::Oauth2::Client.table_name.should == 'oauth2_clients' }

  describe 'basic client instance' do
    with :client
    subject { client }
    it { should validate_uniqueness_of :identifier }
    it { should have_db_index(:identifier).unique(true) }
    it { should have_many :refresh_tokens }
    it { should have_many :authorization_codes }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise_oauth2_rails4-2.1.8 spec/models/client_spec.rb
devise_oauth2_rails4-2.1.7 spec/models/client_spec.rb
devise_oauth2_rails4-2.1.6 spec/models/client_spec.rb
devise_oauth2_rails4-2.1.5 spec/models/client_spec.rb