Sha256: 27be725308189157b8d8539e4aeb2b91e8dc03b930cc085740025101922df55f

Contents?: true

Size: 791 Bytes

Versions: 5

Compression:

Stored size: 791 Bytes

Contents

require 'spec_helper'

describe FcrepoAdmin::ObjectsController do
  let!(:object) { FactoryGirl.create(:item) }
  after { object.delete }
  context "#show" do
    subject { get :show, :id => object, :use_route => 'fcrepo_admin' }
    it { should render_template(:show) }
  end
  context "#audit_trail" do
    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' }
    its(:response_code) { should eq(200) }
  end
  context "#permissions" do
    subject { get :permissions, :id => object, :use_route => 'fcrepo_admin' }
    it { should render_template(:permissions) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fcrepo_admin-0.5.4 spec/controllers/objects_controller_spec.rb
fcrepo_admin-0.5.3 spec/controllers/objects_controller_spec.rb
fcrepo_admin-0.5.2 spec/controllers/objects_controller_spec.rb
fcrepo_admin-0.5.1 spec/controllers/objects_controller_spec.rb
fcrepo_admin-0.5.0 spec/controllers/objects_controller_spec.rb