Sha256: 7dc4bbbe1342f4206e021745d122a7ed1729d4f60b430deb0cac991a3e337860

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

require 'spec_helper'

shared_examples "a datastream profile view" do
  it { should render_template(:show) }
end

describe FcrepoAdmin::DatastreamsController do
  after { object.delete }
  context "#show" do
    let(:object) { FactoryGirl.create(:content_model) } 
    let(:dsid) { "DC" }
    context "profile information" do
      subject { get :show, :object_id => object, :id => dsid, :use_route => 'fcrepo_admin' }
      it { should render_template(:show) }
    end
    context "download content" do
      subject { get :show, :object_id => object, :id => dsid, :download => 'true', :use_route => 'fcrepo_admin' }
      it { should be_successful }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fcrepo_admin-0.1.1 spec/controllers/datastreams_controller_spec.rb
fcrepo_admin-0.1.0 spec/controllers/datastreams_controller_spec.rb