From 3bf8948b115496eca84b663c8e618a812c403b7d Mon Sep 17 00:00:00 2001 From: Bertocq Date: Wed, 3 Jan 2018 16:58:43 +0100 Subject: [PATCH] Fix typo, dowload to download --- config/locales/en/documents.yml | 2 +- spec/shared/features/documentable.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/locales/en/documents.yml b/config/locales/en/documents.yml index 3719fd230..7db70b25a 100644 --- a/config/locales/en/documents.yml +++ b/config/locales/en/documents.yml @@ -16,7 +16,7 @@ en: alert: Cannot destroy document. confirm: Are you sure you want to delete the document? This action cannot be undone! buttons: - download_document: Dowload file + download_document: Download file destroy_document: Destroy errors: messages: diff --git a/spec/shared/features/documentable.rb b/spec/shared/features/documentable.rb index 2bd9d8f86..e13657d38 100644 --- a/spec/shared/features/documentable.rb +++ b/spec/shared/features/documentable.rb @@ -41,7 +41,7 @@ shared_examples "documentable" do |documentable_factory_name, documentable_path, visit send(documentable_path, arguments) within "#tab-documents" do - expect(page).to have_link("Dowload file") + expect(page).to have_link("Download file") end end @@ -49,7 +49,7 @@ shared_examples "documentable" do |documentable_factory_name, documentable_path, visit send(documentable_path, arguments) within "#tab-documents" do - expect(page).to have_selector("a[target=_blank]", text: "Dowload file") + expect(page).to have_selector("a[target=_blank]", text: "Download file") end end @@ -57,7 +57,7 @@ shared_examples "documentable" do |documentable_factory_name, documentable_path, visit send(documentable_path, arguments) within "#tab-documents" do - expect(page).to have_selector("a[rel=nofollow]", text: "Dowload file") + expect(page).to have_selector("a[rel=nofollow]", text: "Download file") end end @@ -149,4 +149,4 @@ def attach_document(path, success = true) else expect(page).to have_css ".loading-bar.errors" end -end \ No newline at end of file +end