diff options
Diffstat (limited to 'spec/serializers/member_user_entity_spec.rb')
-rw-r--r-- | spec/serializers/member_user_entity_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/serializers/member_user_entity_spec.rb b/spec/serializers/member_user_entity_spec.rb index 4dd6848c47b..638347738f2 100644 --- a/spec/serializers/member_user_entity_spec.rb +++ b/spec/serializers/member_user_entity_spec.rb @@ -27,6 +27,12 @@ RSpec.describe MemberUserEntity do expect(entity_hash[:blocked]).to be(true) end + it 'correctly exposes `is_bot`' do + allow(user).to receive(:bot?).and_return(true) + + expect(entity_hash[:is_bot]).to be(true) + end + it 'does not expose `two_factor_enabled` by default' do expect(entity_hash[:two_factor_enabled]).to be(nil) end |