Sha256: 0ff48c3649e117de75974a68ca6a5eb6b359598967827d84a53e1dae73487a29

Contents?: true

Size: 417 Bytes

Versions: 4

Compression:

Stored size: 417 Bytes

Contents

require 'spec_helper'

describe 'curation_concern/generic_files/show.html.erb' do
  it 'displays an audio player' do
    file = stub_model(GenericFile, audit_stat: true, pid: '1234')
    allow(view).to receive(:can?) { true }

    render(template: 'curation_concern/generic_files/show', locals: {curation_concern: file, parent: file})
    
    expect(response).to render_template(partial: '_media_display')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
curate-0.6.6 spec/views/curation_concern/generic_files/show.html.erb_spec.rb
curate-0.6.5 spec/views/curation_concern/generic_files/show.html.erb_spec.rb
curate-0.6.4 spec/views/curation_concern/generic_files/show.html.erb_spec.rb
curate-0.6.3 spec/views/curation_concern/generic_files/show.html.erb_spec.rb