updates texts on specs

This commit is contained in:
Alberto Garcia Cabeza
2017-04-17 19:21:04 +02:00
parent 8cbf9f3c3d
commit 54a90bbdc9
3 changed files with 3 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ feature "Admin custom content blocks" do
expect(page).to have_content("#{block.name} (#{block.locale})")
expect(page).to have_content(block.body)
click_button "Delete"
click_button "Delete block"
expect(page).to_not have_content("#{block.name} (#{block.locale})")
expect(page).to_not have_content(block.body)
@@ -98,7 +98,7 @@ feature "Admin custom content blocks" do
block = create(:site_customization_content_block)
visit edit_admin_site_customization_content_block_path(block)
click_button "Delete"
click_button "Delete block"
expect(page).to_not have_content("#{block.name} (#{block.locale})")
expect(page).to_not have_content(block.body)

View File

@@ -62,7 +62,7 @@ feature "Admin custom pages" do
custom_page = create(:site_customization_page, title: "An example custom page")
visit edit_admin_site_customization_page_path(custom_page)
click_button "Delete"
click_button "Delete page"
expect(page).to_not have_content("An example custom page")
end