lib/gds-sso/lint/user_spec.rb in gds-sso-11.1.0 vs lib/gds-sso/lint/user_spec.rb in gds-sso-11.2.0
- old
+ new
@@ -35,10 +35,11 @@
'name' => 'Joe Smith',
'email' => 'joe.smith@example.com',
},
'extra' => {
'user' => {
+ 'disabled' => false,
'permissions' => ['signin'],
'organisation_slug' => 'cabinet-office',
'organisation_content_id' => '91e57ad9-29a3-4f94-9ab4-5e9ae6d13588'
}
}
@@ -47,9 +48,10 @@
user = described_class.find_for_gds_oauth(auth_hash)
expect(user).to be_an_instance_of(described_class)
expect(user.uid).to eq('12345')
expect(user.name).to eq("Joe Smith")
expect(user.email).to eq('joe.smith@example.com')
+ expect(user).not_to be_disabled
expect(user.permissions).to eq(['signin'])
expect(user.organisation_slug).to eq('cabinet-office')
expect(user.organisation_content_id).to eq('91e57ad9-29a3-4f94-9ab4-5e9ae6d13588')
end
end