Correct typos on nested documentable/imageable
This commit is contained in:
@@ -128,7 +128,7 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
|
||||
expect(page).to have_css ".loading-bar.complete"
|
||||
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
|
||||
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")
|
||||
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
|
||||
visit send(path, arguments)
|
||||
|
||||
|
||||
@@ -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 ImagesHelper
|
||||
include ImageablesHelper
|
||||
@@ -126,7 +129,7 @@ shared_examples "nested imageable" do |imageable_factory_name, path, imageable_p
|
||||
expect_image_has_cached_attachment(".jpg")
|
||||
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
|
||||
visit send(path, arguments)
|
||||
|
||||
@@ -139,7 +142,7 @@ shared_examples "nested imageable" do |imageable_factory_name, path, imageable_p
|
||||
expect_image_has_cached_attachment("")
|
||||
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
|
||||
visit send(path, arguments)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user