diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-06-02 13:24:42 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-06-02 13:24:42 +0000 |
commit | 228b73d5e9e68991017dbfc5d072c3831411c383 (patch) | |
tree | cc0435e671819a9e6e51600a2ab82b1659a65aba /spec/serializers | |
parent | 68112433e1c5537538004f6279cfe83d38aaaa0b (diff) | |
download | gitlab-ce-228b73d5e9e68991017dbfc5d072c3831411c383.tar.gz |
Pipeline show view real time header section
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/user_entity_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/serializers/user_entity_spec.rb b/spec/serializers/user_entity_spec.rb index c5d11cbcf5e..cd778e49107 100644 --- a/spec/serializers/user_entity_spec.rb +++ b/spec/serializers/user_entity_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' describe UserEntity do + include Gitlab::Routing + let(:entity) { described_class.new(user) } let(:user) { create(:user) } subject { entity.as_json } @@ -20,4 +22,8 @@ describe UserEntity do it 'does not expose 2FA OTPs' do expect(subject).not_to include(/otp/) end + + it 'exposes user path' do + expect(subject[:path]).to eq user_path(user) + end end |