Sha256: bb8308bd082b8ced4b73bd016532d2cce31156da6dece0ad9f8c7f20364504e6
Contents?: true
Size: 874 Bytes
Versions: 2
Compression:
Stored size: 874 Bytes
Contents
shared_examples_for 'an auth user' do it 'has the correct id' do expect(user.id).to eq(raw_user_info['id']) end it 'has the correct email' do expect(user.email).to eq(raw_user_info['email']) end it 'has the correct first_name' do expect(user.first_name).to eq(raw_user_info['first_name']) end it 'has the correct last_name' do expect(user.last_name).to eq(raw_user_info['last_name']) end it 'has the correct phone_number' do expect(user.phone_number).to eq(raw_user_info['phone_number']) end it 'has the correct title' do expect(user.title).to eq(raw_user_info['title']) end it 'has the correct organization_name' do expect(user.organization_name).to eq(raw_user_info['organization_name']) end it 'has the correct number of roles' do expect(user.roles.count).to eq(raw_user_info['roles'].count) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
g5_authenticatable_api-0.4.1 | spec/support/shared_examples/auth_user.rb |
g5_authenticatable_api-0.4.0 | spec/support/shared_examples/auth_user.rb |