diff options
Diffstat (limited to 'spec/serializers/user_entity_spec.rb')
-rw-r--r-- | spec/serializers/user_entity_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/serializers/user_entity_spec.rb b/spec/serializers/user_entity_spec.rb index cd778e49107..fa70fc8c03b 100644 --- a/spec/serializers/user_entity_spec.rb +++ b/spec/serializers/user_entity_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +require "spec_helper" describe UserEntity do include Gitlab::Routing @@ -7,23 +7,23 @@ describe UserEntity do let(:user) { create(:user) } subject { entity.as_json } - it 'exposes user name and login' do + it "exposes user name and login" do expect(subject).to include(:username, :name) end - it 'does not expose passwords' do + it "does not expose passwords" do expect(subject).not_to include(/password/) end - it 'does not expose tokens' do + it "does not expose tokens" do expect(subject).not_to include(/token/) end - it 'does not expose 2FA OTPs' do + it "does not expose 2FA OTPs" do expect(subject).not_to include(/otp/) end - it 'exposes user path' do + it "exposes user path" do expect(subject[:path]).to eq user_path(user) end end |