Sha256: cb61dd708e5188515e4c28847c41700373878f15c894a26f72c961bb234e6b44

Contents?: true

Size: 725 Bytes

Versions: 10

Compression:

Stored size: 725 Bytes

Contents

require 'spec_helper'

describe Etd do
  subject { FactoryGirl.build(:etd) }

  it_behaves_like 'with_access_rights'
  it_behaves_like 'with_related_works'
  it_behaves_like 'is_embargoable'
  it_behaves_like 'has_common_solr_fields'
  it_behaves_like 'it has linked contributors'

  it { should have_unique_field(:human_readable_type) }
  it { should have_unique_field(:abstract) }
  it { should have_unique_field(:title) }
  it { should have_unique_field(:date_uploaded) }
  it { should have_unique_field(:date_modified) }
  it { should have_unique_field(:identifier) }

  it { should have_multivalue_field(:subject) }
  it { should have_multivalue_field(:publisher) }
  it { should have_multivalue_field(:language) }

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
curate-0.6.6 spec/repository_models/etd_spec.rb
curate-0.6.5 spec/repository_models/etd_spec.rb
curate-0.6.4 spec/repository_models/etd_spec.rb
curate-0.6.3 spec/repository_models/etd_spec.rb
curate-0.6.1 spec/repository_models/etd_spec.rb
curate-0.6.0 spec/repository_models/etd_spec.rb
curate-0.5.6 spec/repository_models/etd_spec.rb
curate-0.5.5 spec/repository_models/etd_spec.rb
curate-0.5.4 spec/repository_models/etd_spec.rb
curate-0.5.2 spec/repository_models/etd_spec.rb