Sha256: bc7cdc08426844035da4fe945412241308d7e62f3778dd6918194be478da9405

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

require 'spec_helper'

module Skydrive
  describe Token do
    let(:user) {User.create(:email => 'email@email.com', username: 'user', name: 'User')}
    it "requires_refresh? shouldn't be true when empty" do
      token = Token.create(user: user)
      expect(token.requires_refresh?).to be(false)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lti_skydrive-1.2.2 spec/models/token_spec.rb
lti_skydrive-1.2.1 spec/models/token_spec.rb