Sha256: 144fa3d1fae7de1b292974bfc746e5860de93627b59d0b841100996da54cc428
Contents?: true
Size: 719 Bytes
Versions: 13
Compression:
Stored size: 719 Bytes
Contents
require 'spec_helper' describe "Uploading files via web form" do before do sign_in :user end it "should have an ingest screen" do click_link "upload" page.should have_content "Select files" page.should have_content "Start upload" page.should have_content "Cancel upload" page.should have_xpath '//input[@type="file"]' end it "should require checking the terms of service" do click_link "upload" attach_file("files[]", File.dirname(__FILE__)+"/../../spec/fixtures/image.jp2") attach_file("files[]", File.dirname(__FILE__)+"/../../spec/fixtures/jp2_fits.xml") click_button 'Start upload' page.should have_content "You must accept the terms of service!" end end
Version data entries
13 entries across 13 versions & 1 rubygems