From 228b73d5e9e68991017dbfc5d072c3831411c383 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Fri, 2 Jun 2017 13:24:42 +0000 Subject: Pipeline show view real time header section --- spec/serializers/user_entity_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/serializers/user_entity_spec.rb') 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 -- cgit v1.2.1