Sha256: 609dc6c1c51fdf9e39585c97e371eb49b07a76c54f72a7a0cb5598a96cd547a2
Contents?: true
Size: 533 Bytes
Versions: 7
Compression:
Stored size: 533 Bytes
Contents
require 'spec_helper' describe Devise::Oauth::Authorization do before { @auth = create(:authorization) } subject { @auth } it { should validate_presence_of(:client_id) } it { should validate_presence_of(:resource_owner_id) } it { should belong_to(:client) } it { should belong_to(:resource_owner) } it { should have_db_index(:code).unique(true) } it { should have_db_index(:client_id).unique(false) } its(:code) { should_not be_nil } its(:expires_at) { should_not be_nil } it { should_not be_blocked } end
Version data entries
7 entries across 7 versions & 1 rubygems