Sha256: 6f92323fd6ea5f16786e7e0ce6e45e151d2ff4e8d2bdefbd24f80d785ed15522
Contents?: true
Size: 1.06 KB
Versions: 6
Compression:
Stored size: 1.06 KB
Contents
require 'spec_helper' describe 'collections/_show_descriptions.html.erb', type: :view do context 'displaying a custom collection' do let(:collection) do mock_model(Collection, resource_type: [], creator: [], contributor: [], tag: [], description: '', title: 'hmm', rights: [], publisher: [], date_created: ['2000-01-01'], subject: [], language: [], identifier: [], based_near: [], related_url: [], members: ['foo', 'bar'], bytes: 123_456_678 ) end before do assign(:presenter, presenter) end let(:presenter) { Sufia::CollectionPresenter.new(collection) } it "draws the metadata fields for collection" do render expect(rendered).to have_content 'Date Created' expect(rendered).to include('itemprop="dateCreated"') expect(rendered).to have_content 'Total Items' expect(rendered).to have_content '2' expect(rendered).to have_content 'Size' expect(rendered).to have_content '118 MB' end end end
Version data entries
6 entries across 6 versions & 1 rubygems