Sha256: 00ea4459dc6742bb593591f3eb599595052f813d6ada7456208766612fcdf537

Contents?: true

Size: 639 Bytes

Versions: 64

Compression:

Stored size: 639 Bytes

Contents

require 'spec_helper'

describe 'curation_concerns/single_use_links_viewer/show.html.erb' do
  let(:ability) { double }
  let(:model) { stub_model(FileSet, title: ['world.png']) }
  let(:solr_document) { SolrDocument.new(model.to_solr) }
  let(:presenter) { CurationConcerns::FileSetPresenter.new(solr_document, ability) }
  let(:download_link) { '/a_path' }
  before do
    assign(:presenter, presenter)
    assign(:download_link, download_link)
    view.lookup_context.view_paths.push 'app/views/curation_concerns/base'
    render
  end

  it "renders the page" do
    expect(rendered).to have_selector 'h1', text: 'world.png'
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.7.7 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-2.0.0 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-2.0.0.rc2 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.7.6 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.7.5 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.7.4 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.7.3 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.7.2 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-2.0.0.rc1 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.7.1 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.7.0 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.7.0.beta1 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.6.3 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.6.2 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.6.1 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.6.0 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.5.0 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.4.0 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb
curation_concerns-1.3.3 spec/views/curation_concerns/single_use_links_viewer/show.html.erb_spec.rb