Sha256: 8b7864f0b326c6e0e9e6c69b8e75dc751c85631dabc49c082d761073a09f9174
Contents?: true
Size: 891 Bytes
Versions: 6
Compression:
Stored size: 891 Bytes
Contents
if ENV['BROWSER'] require 'spec_helper' describe 'http endpoints', type: :feature, sauce: true do it 'should show the page' do visit '/simple_http' expect(page).to have_content('this is just some text') end it 'should have access to the store' do DataStore.new.drop_database $page.store._simple_http_tests << { name: 'hello' } visit '/simple_http/store' expect(page).to have_content('You had me at hello') DataStore.new.drop_database end it 'should upload and store a file' do file = 'tmp/uploaded_file' FileUtils.rm(file) if File.exist?(file) visit '/upload' attach_file('file', __FILE__) find('#submit_file_upload').click expect(page).to have_content('successfully uploaded') expect(File.exist?(file)).to be(true) FileUtils.rm(file) if File.exist?(file) end end end
Version data entries
6 entries across 6 versions & 1 rubygems