Fix typo, dowload to download
This commit is contained in:
@@ -16,7 +16,7 @@ en:
|
|||||||
alert: Cannot destroy document.
|
alert: Cannot destroy document.
|
||||||
confirm: Are you sure you want to delete the document? This action cannot be undone!
|
confirm: Are you sure you want to delete the document? This action cannot be undone!
|
||||||
buttons:
|
buttons:
|
||||||
download_document: Dowload file
|
download_document: Download file
|
||||||
destroy_document: Destroy
|
destroy_document: Destroy
|
||||||
errors:
|
errors:
|
||||||
messages:
|
messages:
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ shared_examples "documentable" do |documentable_factory_name, documentable_path,
|
|||||||
visit send(documentable_path, arguments)
|
visit send(documentable_path, arguments)
|
||||||
|
|
||||||
within "#tab-documents" do
|
within "#tab-documents" do
|
||||||
expect(page).to have_link("Dowload file")
|
expect(page).to have_link("Download file")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ shared_examples "documentable" do |documentable_factory_name, documentable_path,
|
|||||||
visit send(documentable_path, arguments)
|
visit send(documentable_path, arguments)
|
||||||
|
|
||||||
within "#tab-documents" do
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ shared_examples "documentable" do |documentable_factory_name, documentable_path,
|
|||||||
visit send(documentable_path, arguments)
|
visit send(documentable_path, arguments)
|
||||||
|
|
||||||
within "#tab-documents" do
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -149,4 +149,4 @@ def attach_document(path, success = true)
|
|||||||
else
|
else
|
||||||
expect(page).to have_css ".loading-bar.errors"
|
expect(page).to have_css ".loading-bar.errors"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user