Sha256: 2a8a1f8dd57702e11aedc3979cd35d065936645451e7850114fc9b79c3768e35
Contents?: true
Size: 821 Bytes
Versions: 9
Compression:
Stored size: 821 Bytes
Contents
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
Version data entries
9 entries across 9 versions & 1 rubygems