Sha256: 098276d085799e36c5ae665b72ca3c905120326746823b8019dd66cdb3f2e561
Contents?: true
Size: 591 Bytes
Versions: 3
Compression:
Stored size: 591 Bytes
Contents
require 'spec_helper' describe CollectionsSearchHelper, :type => :helper 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 expect(collection_name(collection_without_title.id)).to eq collection_without_title.id end it "should return the title value associated with the given pid" do expect(collection_name(collection_with_title.id)).to eq "Title of Collection 2" end end end
Version data entries
3 entries across 3 versions & 1 rubygems