Sha256: 9aee429927d03c942e00720dea0439ce95529753d50e72d18da1d17eb3e93dff
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 Bytes
Contents
require 'spec_helper_integration' describe Doorkeeper::AccessGrant do subject { FactoryGirl.build(:access_grant) } it { should be_valid } it_behaves_like 'an accessible token' it_behaves_like 'a revocable token' it_behaves_like 'an unique token' do let(:factory_name) { :access_grant } end describe 'validations' do it 'is invalid without resource_owner_id' do subject.resource_owner_id = nil should_not be_valid end it 'is invalid without application_id' do subject.application_id = nil should_not be_valid end it 'is invalid without token' do subject.save subject.token = nil should_not be_valid end it 'is invalid without expires_in' do subject.expires_in = nil should_not be_valid end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-1.2.0 | spec/models/doorkeeper/access_grant_spec.rb |