Sha256: 55edd66b218e8528a07f58cb8b61942f1b83cfbabb26f5caf1134a90a4a25af4

Contents?: true

Size: 327 Bytes

Versions: 16

Compression:

Stored size: 327 Bytes

Contents

require 'spec_helper'

module Landable
  describe AccessToken do
    it { should_not have_valid(:author_id).when(nil) }

    it "generates an expiration timestamp before creation" do
      author = create :author
      token  = AccessToken.create!(author: author)
      expect(token.expires_at).not_to be_nil
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
landable-1.13.1 spec/models/landable/access_token_spec.rb
landable-1.12.3 spec/models/landable/access_token_spec.rb
landable-1.12.2 spec/models/landable/access_token_spec.rb
landable-1.12.1 spec/models/landable/access_token_spec.rb
landable-1.11.1 spec/models/landable/access_token_spec.rb
landable-1.11.0 spec/models/landable/access_token_spec.rb
landable-1.10.0.rc2 spec/models/landable/access_token_spec.rb
landable-1.10.0.rc1 spec/models/landable/access_token_spec.rb
landable-1.9.2 spec/models/landable/access_token_spec.rb
landable-1.9.1 spec/models/landable/access_token_spec.rb
landable-1.9.0 spec/models/landable/access_token_spec.rb
landable-1.9.0.rc2 spec/models/landable/access_token_spec.rb
landable-1.9.0.rc1 spec/models/landable/access_token_spec.rb
landable-1.8.0 spec/models/landable/access_token_spec.rb
landable-1.7.1.rc1 spec/models/landable/access_token_spec.rb
landable-1.7.0 spec/models/landable/access_token_spec.rb