Sha256: 81f40ff2cdc5a1f254963510a537a9d3d480bddc4d46b57bdf22e158313e5d00

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

require 'spec_helper'

module OpenStax::Connect
  describe User do
    it 'can return an AnonymousUser' do
      anon = User.anonymous
      expect(anon.is_anonymous?).to eq true
      expect(anon.first_name).to eq 'Guest'
      expect(anon.last_name).to eq 'User'
      expect(anon.openstax_uid).to be_nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openstax_connect-0.1.0 spec/models/openstax/connect/user_spec.rb