Sha256: 4c3d46b5e507a157ed1e804ae2d2439f855c00d8761b9ca3437adb4397cf377e
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
require 'spec_helper' require 'model_shared' RSpec.describe Hyrax::NewspaperArticleForm do let(:work) { NewspaperArticle.new } let(:form) { described_class.new(work, nil, nil) } describe "#required_fields" do subject { form.required_fields } it { is_expected.to eq [:title, :resource_type, :language, :held_by] } end describe "#primary_terms" do subject { form.primary_terms } it { is_expected.to eq [:title, :resource_type, :language, :held_by] } end describe "#secondary_terms" do subject { form.secondary_terms } it do is_expected.to eq [:creator, :contributor, :description, :license, :rights_statement, :publisher, :subject, :identifier, :place_of_publication, :issn, :lccn, :oclcnum, :alternative_title, :genre, :author, :photographer, :publication_date, :volume, :edition_number, :edition_name, :issue_number, :geographic_coverage, :extent, :page_number, :section] end end end
Version data entries
3 entries across 3 versions & 1 rubygems