Sha256: 4fbaa6952dfaa5f4f5f4145f72631281a75bbc03d70586d7681edf31b82b6f6f

Contents?: true

Size: 454 Bytes

Versions: 5

Compression:

Stored size: 454 Bytes

Contents

require 'spec_helper'

describe Client do
  describe 'basic client instance' do
    subject { Client.create! :name => 'test', :redirect_uri => 'http://localhost:3000', :website => 'http://localhost' }
    it { should validate_presence_of :name }
    it { should validate_presence_of :website }
    it { should validate_presence_of :redirect_uri }
    it { should validate_uniqueness_of :identifier }
    it { should have_many :refresh_tokens }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devise_oauth2_providable-0.2.3 spec/rails_app/spec/models/client_spec.rb
devise_oauth2_providable-0.2.2 spec/rails_app/spec/models/client_spec.rb
devise_oauth2_providable-0.2.1 spec/rails_app/spec/models/client_spec.rb
devise_oauth2_providable-0.2.0 spec/rails_app/spec/models/client_spec.rb
devise_oauth2_providable-0.1.6 spec/rails_app/spec/models/client_spec.rb