Sha256: 06d2c5153b6f8301874233ce39d9979485b9d96985f69d0ba736279808ffedac

Contents?: true

Size: 637 Bytes

Versions: 7

Compression:

Stored size: 637 Bytes

Contents

require 'spec_helper'

describe Sufia::Forms::CollectionEditForm do
  let(:collection) { Collection.new }
  let(:form) { described_class.new(collection) }

  describe "#terms" do
    subject { form.terms}
    it { is_expected.to eq [:resource_type, :title, :creator, :contributor, :description,
                            :tag, :rights, :publisher, :date_created, :subject, :language,
                            :identifier, :based_near, :related_url] }
  end

  describe "unique?" do
    context "with :title" do
      subject { Sufia::Forms::CollectionEditForm.unique?(:title) }
      it { is_expected.to be true }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sufia-6.2.0 spec/forms/collection_edit_form_spec.rb
sufia-6.1.0 spec/forms/collection_edit_form_spec.rb
sufia-6.0.0 spec/forms/collection_edit_form_spec.rb
sufia-6.0.0.rc4 spec/forms/collection_edit_form_spec.rb
sufia-6.0.0.rc3 spec/forms/collection_edit_form_spec.rb
sufia-6.0.0.rc2 spec/forms/collection_edit_form_spec.rb
sufia-6.0.0.rc1 spec/forms/collection_edit_form_spec.rb