spec/refile/features/presigned_upload_spec.rb in refile-0.5.5 vs spec/refile/features/presigned_upload_spec.rb in refile-0.6.0
- old
+ new
@@ -4,10 +4,12 @@
scenario "Successfully upload a file" do
visit "/presigned/posts/new"
fill_in "Title", with: "A cool post"
attach_file "Document", path("hello.txt")
+ expect(page).to have_content("Presign start")
+ expect(page).to have_content("Presign complete")
expect(page).to have_content("Upload started")
expect(page).to have_content("Upload complete token accepted")
expect(page).to have_content("Upload success token accepted")
click_button "Create"
@@ -19,9 +21,11 @@
scenario "Fail to upload a file that is too large" do
visit "/presigned/posts/new"
fill_in "Title", with: "A cool post"
attach_file "Document", path("large.txt")
+ expect(page).to have_content("Presign start")
+ expect(page).to have_content("Presign complete")
expect(page).to have_content("Upload started")
expect(page).to have_content("Upload failure too large")
end
end