Sha256: ae949a0c14f0e020ba372ecdbaf7a54287e605e5421d3d72ff898deb62827dbf

Contents?: true

Size: 566 Bytes

Versions: 10

Compression:

Stored size: 566 Bytes

Contents

require 'spec_helper'

describe CollectionsSearchHelper do
  describe "collection_name" do
    let (:collection_without_title) { Collection.create() }
    let (:collection_with_title) { Collection.create(title: "Title of Collection 2") }
    it "should return the pid if no title available" do
      collection_name(collection_without_title.pid).should == collection_without_title.pid
    end
    it "should return the title value associated with the given pid" do
      collection_name(collection_with_title.pid).should == "Title of Collection 2"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hydra-collections-2.0.3 spec/helpers/collections_search_helper_spec.rb
hydra-collections-2.0.2 spec/helpers/collections_search_helper_spec.rb
hydra-collections-2.0.1 spec/helpers/collections_search_helper_spec.rb
hydra-collections-2.0.0 spec/helpers/collections_search_helper_spec.rb
hydra-collections-1.3.2 spec/helpers/collections_search_helper_spec.rb
hydra-collections-1.3.1 spec/helpers/collections_search_helper_spec.rb
hydra-collections-1.3.0 spec/helpers/collections_search_helper_spec.rb
hydra-collections-1.2.0 spec/helpers/collections_search_helper_spec.rb
hydra-collections-1.2.0.rc1 spec/helpers/collections_search_helper_spec.rb
hydra-collections-1.1.0 spec/helpers/collections_search_helper_spec.rb