Sha256: e176e5030aa1a01cdf75a24ffb05d108f3b0c8f8cd790ac9d49193756457daa5

Contents?: true

Size: 694 Bytes

Versions: 6

Compression:

Stored size: 694 Bytes

Contents

require 'spec_helper'

describe FcrepoAdmin::AuditTrailController do
  context "#index" do
    let(:object) { FactoryGirl.create(:content_model) }
    after { object.delete }
    it "should render the index template" do
      get :index, :object_id => object, :use_route => 'fcrepo_admin'
      response.should render_template(:index)
    end
  end
  context "#index?download=true" do
    context "object does not respond to audit_trail" do
      subject { get :index, :object_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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fcrepo_admin-0.3.0 spec/controllers/audit_trail_controller_spec.rb
fcrepo_admin-0.2.4 spec/controllers/audit_trail_controller_spec.rb
fcrepo_admin-0.2.3 spec/controllers/audit_trail_controller_spec.rb
fcrepo_admin-0.2.0 spec/controllers/audit_trail_controller_spec.rb
fcrepo_admin-0.1.1 spec/controllers/audit_trail_controller_spec.rb
fcrepo_admin-0.1.0 spec/controllers/audit_trail_controller_spec.rb