Sha256: 1441e8c69176df08803bf0acd22b8f856d434ea5eebd5f518b9e34486cb69d85
Contents?: true
Size: 1.93 KB
Versions: 2
Compression:
Stored size: 1.93 KB
Contents
require 'spec_helper' RSpec.feature 'RasterWorkController', type: :feature do let(:user) { FactoryGirl.create(:admin) } let(:fgdc_file) { test_data_fixture_path('zipcodes_fgdc.xml') } context "an authorized user" do before do expect(CharacterizeJob).to receive(:perform_later) sign_in user end scenario "creating a raster work and attaching a vector work" do visit new_curation_concerns_raster_work_path expect(page).not_to have_text 'Add Your Content' fill_in 'raster_work_title', with: 'Raster Title' fill_in 'raster_work_temporal', with: '1989' choose 'raster_work_visibility_open' select 'Attribution 3.0 United States', from: 'raster_work[rights]' click_button 'Create Raster work' expect(page).to have_text 'Raster Title' expect(page).to have_text '1989' expect(page).to have_text 'Open Access' expect(page).to have_link 'Attribution 3.0 United States', href: 'http://creativecommons.org/licenses/by/3.0/us/' click_link 'Attach a Vector Work' expect(page).not_to have_text 'Add Your Content' fill_in 'vector_work_title', with: 'Vector Title' fill_in 'vector_work_temporal', with: '1990' choose 'vector_work_visibility_authenticated' select 'Attribution-ShareAlike 3.0 United States', from: 'vector_work[rights]' click_button 'Create Vector work' expect(page).to have_text 'Vector Title' expect(page).to have_text '1990' expect(page).to have_text 'Institution Name' expect(page).to have_link 'Attribution-ShareAlike 3.0 United States', href: 'http://creativecommons.org/licenses/by-sa/3.0/us/' click_link 'Attach a Metadata File' fill_in 'file_set[title][]', with: 'File Title' select 'FGDC', from: 'file_set_geo_mime_type' attach_file 'file_set[files][]', fgdc_file click_button 'Attach to Vector Work' expect(page).to have_text 'zipcodes_fgdc.xml' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geo_concerns-0.0.5 | spec/features/create_raster_work_spec.rb |
geo_concerns-0.0.4 | spec/features/create_raster_work_spec.rb |