Skip to content

Commit 7a88ebc

Browse files
committed
refactor test to appease rubocop
1 parent fd1c1b3 commit 7a88ebc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/rpi_auth/models/authenticatable_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ class DummyUser
5454

5555
it 'returns a user with the correct attributes' do
5656
expect(omniauth_user).to be_a described_class
57-
expect(omniauth_user.user_id).to eq('testuserid')
58-
expect(omniauth_user.name).to eq('Bodkin Van Horn')
59-
expect(omniauth_user.nickname).to eq('Hoos-Foos')
60-
expect(omniauth_user.email).to eq('test@example.com')
61-
expect(omniauth_user.country).to eq('Zimbabwe')
62-
expect(omniauth_user.country_code).to eq('ZW')
63-
expect(omniauth_user.picture).to eq('https://placecage.com/100/100')
64-
expect(omniauth_user.profile).to eq('https://my.raspberry.pi/profile/edit')
57+
expect(omniauth_user).to have_attributes(user_id: 'testuserid',
58+
name: 'Bodkin Van Horn',
59+
nickname: 'Hoos-Foos',
60+
email: 'test@example.com',
61+
country: 'Zimbabwe',
62+
country_code: 'ZW',
63+
picture: 'https://placecage.com/100/100',
64+
profile: 'https://my.raspberry.pi/profile/edit')
6565
end
6666

6767
context 'with unusual keys in info' do

0 commit comments

Comments
 (0)