Sha256: 0c0fa26f8d0b4e846148bd869764edb61126c650afe981249b7d6176d47455d7
Contents?: true
Size: 853 Bytes
Versions: 12
Compression:
Stored size: 853 Bytes
Contents
require 'spec_helper' describe Devise::Oauth2Providable::Client do it { Devise::Oauth2Providable::Client.table_name.should == 'oauth2_clients' } describe 'basic client instance' do with :client subject { client } it { should validate_presence_of :name } it { should validate_uniqueness_of :name } it { should allow_mass_assignment_of :name } it { should validate_presence_of :website } it { should allow_mass_assignment_of :website } it { should allow_mass_assignment_of :redirect_uri } it { should validate_uniqueness_of :identifier } it { should have_db_index(:identifier).unique(true) } it { should_not allow_mass_assignment_of :identifier } it { should_not allow_mass_assignment_of :secret } it { should have_many :refresh_tokens } it { should have_many :authorization_codes } end end
Version data entries
12 entries across 12 versions & 4 rubygems