mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-13 02:35:22 -04:00
dismiss the alert when deleting crops
This commit is contained in:
@@ -11,16 +11,18 @@ describe "Delete crop spec" do
|
||||
it "Delete approved crop" do
|
||||
visit crop_path(approved_crop)
|
||||
click_link 'Actions'
|
||||
click_link 'Delete'
|
||||
dismiss_confirm {click_link 'OK'}
|
||||
accept_confirm do
|
||||
click_link 'Delete'
|
||||
end
|
||||
expect(page).to have_content "crop was successfully destroyed"
|
||||
end
|
||||
|
||||
it "Delete pending crop" do
|
||||
visit crop_path(pending_crop)
|
||||
click_link 'Actions'
|
||||
click_link 'Delete'
|
||||
dismiss_confirm {click_link 'OK'}
|
||||
accept_confirm do
|
||||
click_link 'Delete'
|
||||
end
|
||||
expect(page).to have_content "crop was successfully destroyed"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user