Correct typos on nested documentable/imageable

This commit is contained in:
Angel Perez
2018-05-17 08:18:51 -04:00
parent d86103db5a
commit 7b95f4c320
2 changed files with 8 additions and 5 deletions

View File

@@ -128,7 +128,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
expect(page).to have_css ".loading-bar.complete" expect(page).to have_css ".loading-bar.complete"
end end
scenario "Should update loading bar style after unvalid file upload", :js do scenario "Should update loading bar style after invalid file upload", :js do
login_as user_to_login login_as user_to_login
visit send(path, arguments) visit send(path, arguments)
@@ -149,7 +149,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
expect_document_has_cached_attachment(0, ".pdf") expect_document_has_cached_attachment(0, ".pdf")
end end
scenario "Should not update document cached_attachment field after unvalid file upload", :js do scenario "Should not update document cached_attachment field after invalid file upload", :js do
login_as user_to_login login_as user_to_login
visit send(path, arguments) visit send(path, arguments)

View File

@@ -1,4 +1,7 @@
shared_examples "nested imageable" do |imageable_factory_name, path, imageable_path_arguments, fill_resource_method_name, submit_button, imageable_success_notice, has_many_images = false| shared_examples "nested imageable" do |imageable_factory_name, path,
imageable_path_arguments, fill_resource_method_name,
submit_button, imageable_success_notice,
has_many_images = false|
include ActionView::Helpers include ActionView::Helpers
include ImagesHelper include ImagesHelper
include ImageablesHelper include ImageablesHelper
@@ -126,7 +129,7 @@ shared_examples "nested imageable" do |imageable_factory_name, path, imageable_p
expect_image_has_cached_attachment(".jpg") expect_image_has_cached_attachment(".jpg")
end end
scenario "Should not update image cached_attachment field after unvalid file upload", :js do scenario "Should not update image cached_attachment field after invalid file upload", :js do
login_as user login_as user
visit send(path, arguments) visit send(path, arguments)
@@ -139,7 +142,7 @@ shared_examples "nested imageable" do |imageable_factory_name, path, imageable_p
expect_image_has_cached_attachment("") expect_image_has_cached_attachment("")
end end
scenario "Should show nested image errors after unvalid form submit", :js do scenario "Should show nested image errors after invalid form submit", :js do
login_as user login_as user
visit send(path, arguments) visit send(path, arguments)