Sha256: fe9c26db279488b5ab1e50c79f7944830d6fdffd988f48e6c911de1757da2a87
Contents?: true
Size: 911 Bytes
Versions: 2
Compression:
Stored size: 911 Bytes
Contents
# frozen_string_literal: true RSpec.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-1.0.0 | spec/support/shared_examples/auth_user.rb |
g5_authenticatable_api-1.0.0.pre.1 | spec/support/shared_examples/auth_user.rb |