summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2019-07-25 22:18:49 +0000
committerFatih Acet <acetfatih@gmail.com>2019-07-25 22:18:49 +0000
commit420d546baffbfff05406ce832b076b28585496c5 (patch)
tree20f72017d0d723dabb221be0153b8db622945432 /spec
parent3736e1de27ab05a280cc78e6542b4e41f94aa805 (diff)
parent9aa75af34ee5a55d50ca9876269f2c1b4f12b003 (diff)
downloadgitlab-ce-420d546baffbfff05406ce832b076b28585496c5.tar.gz
Merge branch '65088-incorrect-message-interpolation-on-project-listing' into 'master'
Resolve "Incorrect message interpolation on project listing" Closes #65088 See merge request gitlab-org/gitlab-ce!31121
Diffstat (limited to 'spec')
-rw-r--r--spec/features/users/user_browses_projects_on_user_page_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/users/user_browses_projects_on_user_page_spec.rb b/spec/features/users/user_browses_projects_on_user_page_spec.rb
index 6a9b281fb4c..5768f42c888 100644
--- a/spec/features/users/user_browses_projects_on_user_page_spec.rb
+++ b/spec/features/users/user_browses_projects_on_user_page_spec.rb
@@ -53,6 +53,19 @@ describe 'Users > User browses projects on user page', :js do
expect(page).to have_content(project2.name)
end
+ it 'does not have incorrectly interpolated message', :js do
+ project = create(:project, namespace: user.namespace, updated_at: 2.minutes.since)
+
+ sign_in(user)
+ visit user_path(user)
+ click_nav_link('Personal projects')
+
+ wait_for_requests
+
+ expect(page).to have_content(project.name)
+ expect(page).not_to have_content("_('Updated')")
+ end
+
context 'when not signed in' do
it 'renders user public project' do
visit user_path(user)