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