spec/models/openstax/connect/user_spec.rb in openstax_connect-0.0.10 vs spec/models/openstax/connect/user_spec.rb in openstax_connect-0.1.0
- old
+ new
@@ -1,7 +1,13 @@
require 'spec_helper'
module OpenStax::Connect
describe User do
- pending "add some examples to (or delete) #{__FILE__}"
+ 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