Sha256: 1607667005daf6079f4793e767ef14df13009c0a1229a6520406af41cd3daaa7
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require 'spec_helper' describe "Editing metadata fields", type: :feature do include Warden::Test::Helpers Warden.test_mode! before :each do admin = FactoryGirl.create(:exhibit_admin) login_as(admin, :scope => :user) end it "should work" do visit spotlight.exhibit_edit_metadata_path Spotlight::Exhibit.default expect(page).to have_content "Curation Metadata Fields" expect(page).to have_button "Save" check :blacklight_configuration_index_fields_language_ssm_show check :blacklight_configuration_index_fields_language_ssm_list check :blacklight_configuration_index_fields_abstract_tesim_show check :blacklight_configuration_index_fields_note_mapuse_tesim_list click_on "Save changes" expect(Spotlight::Exhibit.default.blacklight_config('list').index_fields).to include("language_ssm", "note_mapuse_tesim") expect(Spotlight::Exhibit.default.blacklight_config('list').index_fields).to have(2).fields expect(Spotlight::Exhibit.default.blacklight_config.show_fields).to include("language_ssm", "abstract_tesim") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.0.1 | spec/features/exhibits/edit_metadata_fields_spec.rb |