We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0cb351 commit ea72c35Copy full SHA for ea72c35
appengine/storage/spec/storage_spec.rb
@@ -19,7 +19,9 @@
19
20
describe "Cloud Storage", type: :feature do
21
before do
22
- Capybara.current_driver = :cuprite
+ Capybara.register_driver :cuprite do |app|
23
+ Capybara::Cuprite::Driver.new(app, browser_options: {'no-sandbox': nil})
24
+ end
25
end
26
it "can upload and get public URL of uploaded file" do
27
Capybara.app = Sinatra::Application
@@ -31,7 +33,7 @@
31
33
32
34
uploaded_file_public_url = page.find("body").text
35
- visit uploaded_file_public_url
- expect(page).to have_content "This is the content of the test-upload.txt file"
36
+ page = Net::HTTP.get_response(URI(uploaded_file_public_url))
37
+ expect(page.body).to include "This is the content of the test-upload.txt file"
38
39
0 commit comments