Sha256: b68f88d75c8180d0a4a04185fdb7a51a7f33f3c4e3edaaf5b1a6d74d28033b1b

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 Bytes

Contents

require 'spec_helper'

describe FcrepoAdmin::DownloadController do
  let(:object) { FactoryGirl.create(:item) }
  after { object.delete }
  context "#show" do
    it "should have the right content and headers" do
      get :show, :object_id => object.pid, :id => object.descMetadata, :use_route => 'fcrepo_admin'
      response.headers['Content-Disposition'].should == "inline; filename=\"#{object.pid.sub(/:/, '_')}__descMetadata.xml\""
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fcrepo_admin-0.6.1 spec/controllers/download_controller_spec.rb
fcrepo_admin-0.6.0 spec/controllers/download_controller_spec.rb
fcrepo_admin-0.5.5 spec/controllers/download_controller_spec.rb
fcrepo_admin-0.5.5.pre spec/controllers/download_controller_spec.rb