Sha256: 596836a2ff16e32bdc199c6f8c7c4310118801444008adec38d5b245dc4b5b56

Contents?: true

Size: 706 Bytes

Versions: 1

Compression:

Stored size: 706 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../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[]", "spec/fixtures/image.jp2")
    attach_file("files[]", "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

1 entries across 1 versions & 1 rubygems

Version Path
sufia-3.0.0 spec/features/ingest_upload_files.rb