Sha256: bd02b9e6e717b1d7c00ebd0702bbce1d8b90cf86c2a88da3c4f293d4e5202146
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
require "spec_helper" describe "Uploading a non-repository item", :type => :feature do let!(:exhibit) { FactoryGirl.create(:exhibit) } let!(:custom_field) { FactoryGirl.create(:custom_field, exhibit: exhibit) } let!(:exhibit_curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) } before { login_as exhibit_curator } describe "upload" do it "should display the single item upload form" do visit spotlight.new_exhibit_resources_upload_path(exhibit) expect(page).to have_css("h1", text: /Curation/) expect(page).to have_css "h1 small", text: "Add non-repository items" within("form.item-upload-form") do expect(page).to have_css('#resources_upload_url[type="file"]') expect(page).to have_css('.help-block', text: 'Valid file types: jpg jpeg png') expect(page).to have_css('#resources_upload_data_title[type="text"]') expect(page).to have_css('textarea#resources_upload_data_description') expect(page).to have_css('#resources_upload_data_attribution[type="text"]') expect(page).to have_css('#resources_upload_data_date[type="text"]') expect(page).to have_css("#resources_upload_data_#{custom_field.field}[type='text']") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.2.0 | spec/features/upload_non_repository_item_spec.rb |