Sha256: a0b4ef21d8e13ca48812bf9ece8399b452103b0e8456aba3ee3f79b3d0853bcd
Contents?: true
Size: 784 Bytes
Versions: 2
Compression:
Stored size: 784 Bytes
Contents
require 'spec_helper' describe 'curation_concerns/single_use_links/new_download.html.erb' do let(:user) { FactoryGirl.find_or_create(:jill) } let(:f) do file = FileSet.create do |gf| gf.apply_depositor_metadata(user) end Hydra::Works::AddFileToFileSet.call(file, File.open(fixture_path + '/world.png'), :original_file) file end let(:hash) { "some-dummy-sha2-hash" } before do assign :asset, f assign :link, CurationConcerns::Engine.routes.url_helpers.download_single_use_link_path(hash) render end it "has the download link" do expect(rendered).to have_selector "a.download-link" end it "has turbolinks disabled in the download link" do expect(rendered).to have_selector "a.download-link[data-no-turbolink]" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-0.3.0 | spec/views/single_use_links/new_download.html.erb_spec.rb |
curation_concerns-0.2.0 | spec/views/single_use_links/new_download.html.erb_spec.rb |