Sha256: 202ace558f576d58a1e7dfa42d70af22752b668fa74dc13e250151d6d6559235
Contents?: true
Size: 1.06 KB
Versions: 7
Compression:
Stored size: 1.06 KB
Contents
require 'spec_helper' describe 'curation_concerns/base/show.html.erb', type: :view do let(:solr_document) do SolrDocument.new(id: '999', date_modified_dtsi: '2011-04-01', has_model_ssim: ['GenericWork']) end let(:ability) { double } let(:presenter) do Sufia::WorkShowPresenter.new(solr_document, ability) end let(:page) { Capybara::Node::Simple.new(rendered) } before do stub_template 'curation_concerns/base/_metadata.html.erb' => '' stub_template 'curation_concerns/base/_relationships.html.erb' => '' stub_template 'curation_concerns/base/_show_actions.html.erb' => '' stub_template 'curation_concerns/base/_representative_media.html.erb' => '' stub_template 'curation_concerns/base/_social_media.html.erb' => '' stub_template 'curation_concerns/base/_citations.html.erb' => '' stub_template 'curation_concerns/base/_items.html.erb' => '' assign(:presenter, presenter) render end it 'shows last saved' do expect(page).to have_content 'Last modified: 04/01/2011' end end
Version data entries
7 entries across 7 versions & 1 rubygems