summaryrefslogtreecommitdiff
path: root/spec/features/projects/files
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/files')
-rw-r--r--spec/features/projects/files/editing_a_file_spec.rb2
-rw-r--r--spec/features/projects/files/user_browses_files_spec.rb8
-rw-r--r--spec/features/projects/files/user_creates_files_spec.rb4
3 files changed, 7 insertions, 7 deletions
diff --git a/spec/features/projects/files/editing_a_file_spec.rb b/spec/features/projects/files/editing_a_file_spec.rb
index 4074e67e2d2..3285111b46d 100644
--- a/spec/features/projects/files/editing_a_file_spec.rb
+++ b/spec/features/projects/files/editing_a_file_spec.rb
@@ -26,6 +26,6 @@ describe 'Projects > Files > User wants to edit a file' do
click_button 'Commit changes'
- expect(page).to have_content 'Someone edited the file the same time you did.'
+ expect(page).to have_content _('Someone edited the file the same time you did.')
end
end
diff --git a/spec/features/projects/files/user_browses_files_spec.rb b/spec/features/projects/files/user_browses_files_spec.rb
index 66268355345..c12f835c567 100644
--- a/spec/features/projects/files/user_browses_files_spec.rb
+++ b/spec/features/projects/files/user_browses_files_spec.rb
@@ -113,7 +113,7 @@ describe "User browses files" do
click_link("Users")
expect(current_path).to eq(project_blob_path(project, "markdown/doc/api/users.md"))
- expect(page).to have_content("Get a list of users.")
+ expect(page).to have_content(_("Get a list of users."))
page.go_back
@@ -161,7 +161,7 @@ describe "User browses files" do
click_link("Users")
expect(current_path).to eq(project_blob_path(project, "markdown/doc/api/users.md"))
- expect(page).to have_content("List users").and have_content("Get a list of users.")
+ expect(page).to have_content("List users").and have_content(_("Get a list of users."))
end
end
end
@@ -189,7 +189,7 @@ describe "User browses files" do
visit(project_tree_path(project, "'test'"))
- expect(page).to have_css(".tree-commit-link").and have_no_content("Loading commit data...")
+ expect(page).to have_css(".tree-commit-link").and have_no_content(_("Loading commit data..."))
end
it "shows the code with a leading dot in the directory", :js do
@@ -201,7 +201,7 @@ describe "User browses files" do
visit(project_tree_path(project, "fix/.testdir"))
- expect(page).to have_css(".tree-commit-link").and have_no_content("Loading commit data...")
+ expect(page).to have_css(".tree-commit-link").and have_no_content(_("Loading commit data..."))
end
it "does not show the permalink link" do
diff --git a/spec/features/projects/files/user_creates_files_spec.rb b/spec/features/projects/files/user_creates_files_spec.rb
index a4f94b7a76d..2dd3593b520 100644
--- a/spec/features/projects/files/user_creates_files_spec.rb
+++ b/spec/features/projects/files/user_creates_files_spec.rb
@@ -71,7 +71,7 @@ describe 'Projects > Files > User creates files' do
it 'allows Chinese characters in file name' do
submit_new_file(file_name: '测试.md')
- expect(page).to have_content 'The file has been successfully created.'
+ expect(page).to have_content _('The file has been successfully created.')
end
it 'allows Chinese characters in directory name' do
@@ -164,7 +164,7 @@ describe 'Projects > Files > User creates files' do
end
it 'shows a message saying the file will be committed in a fork' do
- message = "A new branch will be created in your fork and a new merge request will be started."
+ message = _("A new branch will be created in your fork and a new merge request will be started.")
expect(page).to have_content(message)
end