Sha256: 20cab8fb4a71016ec96c0ffa414e8b64a9ba0af8cd870509f09d3650d56ed45f

Contents?: true

Size: 811 Bytes

Versions: 5

Compression:

Stored size: 811 Bytes

Contents

require 'spec_helper'

describe FcrepoAdmin::ObjectsController do
  context "#show" do
    subject { get :show, :id => object, :use_route => 'fcrepo_admin' }
    let(:object) { FactoryGirl.create(:content_model) }
    after { object.delete }
    it { should render_template(:show) }
  end
  context "#audit_trail" do
    let(:object) { FactoryGirl.create(:content_model) }
    after { object.delete }
    subject { get :audit_trail, :id => object, :use_route => 'fcrepo_admin' }
    it { should render_template(:audit_trail) }
  end
  context "#audit_trail?download=true" do
    subject { get :audit_trail, :id => object, :download => 'true', :use_route => 'fcrepo_admin' }
    let(:object) { FactoryGirl.create(:content_model) }
    after { object.delete }
    its(:response_code) { should eq(200) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fcrepo_admin-0.3.5 spec/controllers/objects_controller_spec.rb
fcrepo_admin-0.3.4 spec/controllers/objects_controller_spec.rb
fcrepo_admin-0.3.3 spec/controllers/objects_controller_spec.rb
fcrepo_admin-0.3.2 spec/controllers/objects_controller_spec.rb
fcrepo_admin-0.3.1 spec/controllers/objects_controller_spec.rb